This project is read-only.

|| (OR)

Combines two Boolean expressions.

Syntax

boolean_expression OR boolean_expression
or 
boolean_expression || boolean_expression

Arguments

booleanexpression_: Any valid expression that returns a Boolean.

Return Value

true when either of the conditions is true; otherwise, false.

Remarks

Double vertical bars (||) have the same functionality as the OR operator.

Example

-- OR
SELECT VALUE product FROM Products
AS product where product.Price = @price1 OR product.Price = @price2
-- ||
SELECT VALUE product FROM Products
AS product where product.Price = @price1 || product.Price = @price2

Last edited Mar 25, 2013 at 9:03 AM by ansiboy, version 1

Comments

No comments yet.