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

BuiltinFunction.Min Method (FunctionContext)

From DiceRoller Documentation

Returns the smaller of the two arguments.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

[DiceFunction("min", Scope = FunctionScope.Global)]
public static void Min(
    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.