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.