Chapter 16 XG-SIM
16-7
more conditions while a conditional statement may be used as one or more statements through the combination of conditions
Type Operator Priority Description
== 4 Equal to
!= 5 Not equal to
> 6 Larger than
>= 7 Equal to or larger than
<= 8 Equal to or smaller than
Single
comparison
< 9 Smaller than
+ 2 Add
- 3 Subtract
* 0 Multiply
Four
operations
/ 1 Divide
& 12 Bit multiply
| 13 Bit sum
Bit operation
^ 14 Beta bit sum
&& 10 Logical multiply Logic
operation
|| 11 Logical sum
( -
Others
) -
Where, device or channel is to be compared. For instance, if expressing ‘%MW0 is larger than 100 and device %MX10 is On’ as a
conditional statement, it may be expressed as follows.
(%MW0 > 100) && (%MX10 == TRUE)
It supports five types of devices such as %I, %Q, %M, %R and %W.