286 Appendix A
Operators
The following table lists all the operators that can be included in your scripts.
Note: Numbers are assumed to be floating-point unless preceded by “0x,” which denotes
hexadecimal.
Operator Meaning
+ Add (This operator can also be used to indicate a positive number.)
– Subtract (This operator can also be used to indicate a negative number.)
* Multiplication
/ Division
! or not Logical NOT
~ Bitwise NOT
% or mod Modulo
== Equal
!= Not equal
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
<< Shift left
>> Shift right
& Bitwise AND
| Bitwise OR
ˆ or xor Bitwise XOR
&& or and Logical AND
|| or or Logical OR
? and : <conditional> ? <value 1> : <value 2>
If the conditional is true, it will return value 1; if it is false, it will return value 2.
Kommentare zu diesen Handbüchern