ProSoft Technology ProSoft i-View User Manual
Page 51

ProSoft i-View ♦ Mobile Process Monitoring and Control Application
Data Source Files
Version 2.0.2
User Manual
ProSoft Technology, Inc.
Page 51 of 106
September 29, 2011
Operators and Operator Precedence
The following table shows the available operators and its precedence. The table lists all
operators from highest precedence to lowest.
()
Parentheses (grouping).
from inner to outer
! + -
Logical NOT, unary plus, unary minus.
left-to-right
. ( ) [ ]
Method selection, Method/Function call,
Array or String subscript
left-to-right
* /%
Multiply, divide, Modulo
left-to-right
+ -
Addition, subtraction
left-to-right
&
Bitwise AND
left-to-right
^ |
Bitwise XOR, Bitwise OR
left-to-right
< <= > >= != ==
Comparison operators
not associative
&&
Logical AND
left-to-right
||
Logical OR
left-to-right
?:
Ternary if then else
right-to-left
=
Assignment
not associative
If than else
If than else clause
right-to-left
Operators are used in the usual way as per the Ruby or “C” language. Depending on
data types involved the same operator may have a different meaning.