Logical OR

A logical OR expression returns either true (1) if at least one of its operands is true (1), or false (0) if both operands are false (0). If both operands are null, the expression returns null.

Expression

Character representation

Logical OR

|

or

These are examples of using the logical OR expression:

Expression

Returns

1 or 0

1(true)

0 | 0

0 (false)

0 or 1 | 0 or 0

1 (true)

// Ethnio survey code removed