Operators: ||

Logical OR operator.

Syntax

bool‑operand||bool‑operand

Logical OR

The || operator performs on the both boolean operands a logical OR operation. The operation results in the value true when one or both of the operands are true. The resulting data type of the operation is always bool. For example:

var bool  a = true;
var bool  b = false;
var bool  c = false;

var bool  result = a || b;  // result = true
var bool  result = b || c;  // result = false