< Dice | BuiltinFunctions
BuiltinFunction.Abs Method (FunctionContext)
From DiceRoller Documentation
Returns the larger of the two arguments.
- Namespace: Dice
- Assembly: DiceRoller (in DiceRoller.dll)
Syntax
[DiceFunction("max", Scope = FunctionScope.Global)]
public static void Max(
FunctionContext context
)
Parameters
- context
- Type: Dice.FunctionContext
- The context of the function call.
Exceptions
Exception | Condition |
---|---|
DiceException (DiceErrorCode.IncorrectArity) | context.Arguments.Count is not exactly 2. |
DiceException (DiceErrorCode.IncorrectArgType) | context.Arguments[0] or context.Arguments[1] is a comparison. |