DuroDBMS API  1.2
Built-in logical operators

OPERATOR AND

OPERATOR and (boolean, boolean) RETURNS boolean;

Description

The boolean AND operator.


OPERATOR OR

OPERATOR or (boolean, boolean) RETURNS boolean;

Description

The boolean OR operator.


OPERATOR xor

OPERATOR xor (boolean, boolean) RETURNS boolean;

Description

The boolean XOR operator.


OPERATOR not

OPERATOR not (boolean) RETURNS boolean;

Description

The boolean NOT operator.


OPERATOR if

OPERATOR IF (B boolean, V1 ANY, V2 ANY) RETURNS ANY;

Description

The IF-THEN-ELSE operator.

Return value

V1 if B is TRUE, V2 otherwise.