Operators

WESCL has the following types of operators:

Operator Precedence

The precedence of operators determines their priorities when evaluating an expression.

The following table shows the precedence of operators, from the highest to the lowest.

Operator typeIndividual operators
group( )
negation! -
multiply*
divide/
modulus%
addition+
subtraction-
relational< <= > >=
equality== !=
logical-and&&
logical-or||
assignment=
comma,

The operators of the same precedence level are resolved in the succession of their appearance in the expression.