TeSSH implements full expressions. Expressions can contain variables, and most common operators. Parenthesis can be used to override default operator precedence. When evaluating an operation, if all parameters of the operation are numeric, then a numeric operation is used, otherwise a string operation is used. The following operators are recognized (v1 and v2 represent variables, or other expressions). The list is in precedence order, with the highest precedence operators at the top.
If the pattern matching =~ or LIKE operator is used, any saved pattern parameters are available through the %pat function.
The constant true is defined with a value of 1, and the constant false is defined with a value of 0.
Keep in mind that the AND, OR, XOR, and NOT operators are logical operators and not bitwise operation. For bitwise operations, use the various bitwise functions in TeSSH. For example: (2 AND 4) is true using the logical operation, but %bitand(2,4) returns zero, which is false!
Add comment