< Dice‎ | AST
Revision as of 22:55, 16 May 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|CompareOp Enumeration}} The type of comparison to perform. {{ns}} == Syntax == <syntaxhighlight lang="C#"> public enum CompareOp </syntaxhighlight> == Members == {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CompareOp Enumeration

From DiceRoller Documentation

The type of comparison to perform.

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

Syntax

public enum CompareOp

Members

Member name Description
Equals Check if their value is equal to our value.
GreaterThan Check if their value is greater than our value.
LessThan Check if their value is less than our value.
GreaterEquals Check if their value is greater than or equal to our value.
LessEquals Check if their value is less than or equal to our value.
NotEquals Check if their value is not equal to our value.

Remarks

A CompareOp is an integral part of a ComparisonNode. The node contains a value as well as an operation, and compares the thing it is attached to against its stored value. The value stored in a ComparisonNode can be thought of as the right-hand side of the comparison.