WS Expressions
Expressions are evaluated by comparing the rendering of each side of the expression using the specified operator.
The following operators are available:
| Operator | Description |
|---|---|
| = | Performs an equality comparison of the string rendering of both sides of the expression. If both terms contain the same string, the expression evaluates to true. |
| != | The inverse of the equality comparison. If both terms are different strings, the expression evaluates to true. |
| < | Compares two numeric terms. Both sides must resolve to a numeric value; the expression evaluates to true if the first term is less than the second term. |
| <= | Compares two numeric terms. Both sides must resolve to a numeric value; the expression evaluates to true if the first term is less than or equal to the second term. |
| > | Compares two numeric terms. Both sides must resolve to a numeric value; the expression evaluates to true if the first term is greater than the second term. |
| >= | Compares two numeric terms. Both sides must resolve to a numeric value; the expression evaluates to true if the first term is greater than or equal to the second term. |
| HAS | The expression evaluates to true if the string in the first term is contained at all in the second term. |
| !HAS | The expression evaluates to true if the string in the first term is NOT contained in the second term. |
- null keyword
- The special term
nullcan be entered to compare the variable with the valueNULL. - Binary Comparisons
-
For binary comparisons, variable values are rendered as hexadecimal strings. The operators that work with string values can be used for these comparisons.
For example, if the variable
%result%contains two bytes with the value of 255 in each byte, the following expression would return true:%result% = FFFF - Array Comparisons
-
An array is represented as a string in an expression in the following format:
{term1,term2,term3}
