OrExpr

Check if either of its Boolean conditions is true.


Syntax

OrExpr

graphics/OrExpr.jpg

Description

The operands are tested if either one of them evaluates to the Boolean value "true".

Compatibility

The operator name can only be specified using lower case.

It corresponds to the expression OrExpr defined in XPath, Section 3.4, Rule 21. Because of the X-Query definition of AndExpr you can also use SequenceExpr, BetweenExpr, and ProximityExpr as operands.

Example

Select all patients born in 1950 or 1960 (all patient nodes that satisfy the following predicate expression: there is an immediate child node born whose numeric value equals 1950 or there is an immediate child node born whose numeric value equals 1960):

/patient[born = 1950 or born = 1960]

Related Expressions

AndExpr EqualityExpr