CSPro logic has a variety of arithmetic, relational, and logical operators. When more than one operator exists in an expression, the order in which the operators are evaluated is determined by their
precedence.
Operation | Symbol |
Addition | + |
Subtraction | - |
Multiplication | * |
Division | / |
Modulo (remainder) | % |
Exponentiation | ^ |
The arithmetic operators work on numeric expressions, though the addition operator can also be used to perform
string concatenation.
Operation | Symbol |
Equal to | = |
Not equal to | <> |
Less than | < |
Less than or equal to | <= |
Greater than or equal to | >= |
Greater than | > |
In range | |
Has range (for repeating items) | |
Operation | Symbol | Keyword |
Negation | ! | |
Conjunction | & | |
Disjunction | | | |
If and only if | <=> | |
With logical operators, either the symbol or the keyword can be used.