previous contents index next
(..Operators..) Contents Index (..Operators..)

2.7.2 Logical Operators (LogOp)

In SCARLET the three fundamental logical operators AND, OR, and NOT are represented by !, && and ||:

! logical negation
LogOp:
&& logical AND
|| logical inclusive OR

They operate within the class of boolean expressions.
!, contrarily to && and ||, is a unary operator and, therefore, is put directly (and without blank) in front of the operand. (That is furthermore the only reason, why ! cannot belong to the syntactical class LogOp.)


previous contents index next
(..Operators..) Contents Index (..Operators..)