Version 9.5 SP1
 —  X-Query Reference Guide  —

OrExpr

Check if either of its Boolean conditions is true.


Syntax

OrExpr

graphics/OrExpr.jpg

Top of page

Description

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

Top of page

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.

Top of page

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]

Top of page

Related Expressions

AndExpr EqualityExpr

Top of page