< Dice | BuiltinFunctions
Difference between revisions of "Dice/BuiltinFunctions/Max"
From DiceRoller Documentation
(Created page with "{{APIdoc|BuiltinFunction.Abs Method (FunctionContext)}} Returns the larger of the two arguments. {{ns}} == Syntax == <syntaxhighlight lang="C#"> [DiceFunction("max", Scope =...") |
|||
Line 1: | Line 1: | ||
− | {{APIdoc|BuiltinFunction. | + | {{APIdoc|BuiltinFunction.Max Method (FunctionContext)}} |
Returns the larger of the two arguments. | Returns the larger of the two arguments. | ||
Latest revision as of 21:49, 27 April 2017
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. |