|| Operator ("M" Reference)

[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]

The || operator is a binary operator that computes the logical OR of its operands.

Operator Description

The binary || operator is predefined for the Logical type. It computes the logical OR of its operands; that is, the result is false if and only if both its operands are false. The second operand is only evaluated if it must be to determine the result of the || operator. If the first operand evaluates to true, the second operand is not evaluated because the || operator returns true regardless of the second operand's value.