![]() |
![]() |
![]() |
![]() |
(..Operators..) | Contents | Index | (..Operators..) |
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.)
![]() |
![]() |
![]() |
![]() |
(..Operators..) | Contents | Index | (..Operators..) |