Valid Operators for Expressions
The operators that can be used to define an expression or function are performed in a sequence.
The following table lists valid operators and the sequence in which they are accepted (listed in decreasing precedence):
|
() |
Parenthesis |
1 |
|
! |
Not |
2 |
|
^ (or **) |
Exponentiation (If you use "**" for exponentiation, as in previous software versions, it is automatically changed to "^".) |
3 |
|
- |
Unary minus |
4 |
|
* |
Multiplication |
5 |
|
/ |
Division |
5 |
|
+ |
Addition |
6 |
|
- |
Subtraction |
6 |
|
== |
Equals |
7 |
|
!= |
Not equals |
7 |
|
> |
Greater than |
7 |
|
< |
Less than |
7 |
|
>= |
Greater than or equal to |
7 |
|
<= |
Less than or equal to |
7 |
|
&& |
Logical and |
8 |
|
|| |
Logical or |
8 |