Boolean Conditions - Gravecorp/OCTGN GitHub Wiki
The following tags are used to specify boolean conditions inside control structures like the if-then-else.
And
The tag contains any number of boolean tags and combines them with the AND operation (ie. the result is true only if all the parts result to true).
Confirm
The tag prompts the user with a question and results to true if the user selects "Yes" or false otherwise. Attributes:
- text (The text to be displayed.)
The text may contain placeholders. Known placeholders are:
- {me} (The name of the player who executes the action.)
- {} (The value of a variable.)
- {this} (The name of the card or group the action is executed on.)
Equal to
The tag compares two variables or values and results to true if they are equal. Attributes:
- left (The left value or variable.)
- right (The right value or variable.)
- type (The data type of the values or variables. Defaults to 'int' if not specified.)
Is Face Down
The contains a card selector tag and results to true if the selected cards are face down.
Is Rotated by 90°
The contains a card selector tag and results to true if the selected cards are rotated by 90° or 270°.
Is Rotated by 180°
The contains a card selector tag and results to true if the selected cards are rotated by 180° or 270°.
Less than
The tag compares two variables or values and results to true if the left operand is less than the right operand. Attributes:
- left (The left value or variable.)
- right (The right value or variable.)
- type (The data type of the values or variables. Defaults to 'int' if not specified.)
Not
The tag contains one boolean tag and negates it's value (ie. the result is true if the child tag results to false and vice versa).
Not Equal
The tag compares two variables or values and results to true if they are not equal. Attributes:
- left (The left value or variable.)
- right (The right value or variable.)
- type (The data type of the values or variables. Defaults to 'int' if not specified.)
Or
The tag contains any number of boolean tags and combines them with the OR operation (ie. the result is false only if all the parts result to false).