< Dice‎ | BuiltinFunctions
Revision as of 21:49, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|BuiltinFunction.Abs Method (FunctionContext)}} Returns the larger of the two arguments. {{ns}} == Syntax == <syntaxhighlight lang="C#"> [DiceFunction("max", Scope =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.