You can use these operators for expressions:
Operator | Description |
---|---|
== | Returns TRUE if operands are equivalent, FALSE if they are not. |
!= | Returns FALSE if operands are equivalent, TRUE if they are not. |
> | Returns TRUE if the operand on the left is greater than the operand on the right, FALSE if it is not. If the operands are strings, the ASCII values are compared. |
< | Returns TRUE if the operand on the left is less than the operand on the right, FALSE if it is not. If the operands are strings, the ASCII values are compared. |
>= | Returns TRUE if the operand on the left is greater than or equal to the operand on the right, FALSE if it is not. If the operands are strings, the ASCII values are compared. |
<= | Returns TRUE if the operand on the left is less than or equal to the operand on the right, FALSE if it is not. If the operands are strings, the ASCII values are compared. |
&& | Logical AND. Returns TRUE if both operands have a value other than 0. Operands must be integers. |
|| | Logical OR. Returns TRUE if either operand has a value other than 0. Operands must be integers. |
+ | If the operands are both integers, the result is the sum of the integers. If the operands are both strings, the result is the concatenation of the two strings. |
- | Subtracts integers. |
* | Multiplies integers. |
/ | Divides integers. |
() | Parentheses force an evaluation order. |
! | Logical NOT. Returns TRUE if the value of a single operand is 0. Returns FALSE if it is not 0. |
ALWAYS | Always returns TRUE. |
NEVER | Always returns FALSE. |