The following tags are used to specify boolean conditions inside control structures like the if-then-else.
The <and> 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).
The <confirm> 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.)
- {<var>} (The value of a variable.)
- {this} (The name of the card or group the action is executed on.)
The <eq> 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.)
The <isFaceDown> contains a card selector tag and results to true if the selected cards are face down.
The <isRot90> contains a card selector tag and results to true if the selected cards are rotated by 90° or 270°.
The <isRot180> contains a card selector tag and results to true if the selected cards are rotated by 180° or 270°.
The <lt> 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.)
The <not> 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).
The <neq> 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.)
The <or> 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).
boolean_conditions, Rev. 1, Last changed on 2008-10-05 09:46, 356 page hits