Comparison Branch
From Wiki001
Branches based on the comparison of two expressions. When the statement is true, the left path is taken. Otherwise, when the statement is false, the right track is taken. Comparison Branches are Structure Events.
Contents |
Arguments
Expression
First expression.
Operator
How to compare the first expression with the second expression.
- = (Equal)
- Left path is taken when expression one is equal to expression two.
- Right path is taken when expression one is not equal to expression two.
- <> (Not Equal)
- Left path is taken when expression one is not equal to expression two.
- Right path is taken when expression one is equal to expression two.
- < (Less Than)
- Left path is taken when expression one is less than expression two.
- Right path is taken when expression one is greater than or equal to expression two.
- > (Greater Than)
- Left path is taken when expression one is greater than expression two.
- Right path is taken when expression one is less than or equal to expression two.
- <= (Less Than or Equal)
- Left path is taken when expression one is less than or equal to expression two.
- Right path is taken when expression one is greater than expression two.
- >= (Greater Than or Equal)
- Left path is taken when expression one is greater than or equal to expression two.
- Right path is taken when expression one is less than expression two.
- Like (Similar)
- Left path is taken when expression one is matched with expression two.
- Right path is taken when expression one is not match with expression two.
- Matching is done using basic pattern matching. The second expression can contain regular characters (which will make it act exactly like the = operator), it may use ? to represent any single character, or it may use * to represent any series of characters. For example, "heeeello" would be matched with "h*llo", "hello" would be matched with "h?llo", but "heeeello" would not be matched with "h?ello".
Expression
Second expression.
Remarks
This can be used with numbers or text. The comparison is not case-sensitive. "A" is equal to "a".

