|
Home > Online Product Documentation > Table of Contents > Specifying Boolean Expressions and Functions Specifying Boolean Expressions and FunctionsThis section provides information on how to specify Boolean expressions and functions in queries. It includes the following topics: Using Boolean Expressions
You can specify Boolean expressions in the subqueries in filters. You specify the Boolean
You can use parentheses to group collection specifications and operators for clarity or where the normal precedence is inadequate to express an operation. Case SensitivityOperators are case sensitive. Spaces are not significant. You can omit them or include them for clarity. ExamplesThe following query returns all authors who have at least one degree and one award:
The next query finds all authors who have at least one degree or award and at least one publication:
Following is a query that finds all authors who have at least one degree and no publications:
Calling Boolean FunctionsThis section describes the Boolean functions that you can call in a query. The operations you can perform are Converting an Object to Boolean
In some situations, you might want to force a Boolean comparison. The XPath processor performs a Boolean comparison if either operand is a Boolean value. Consequently, if neither operand is a Boolean value, call the
The
The
This query is equivalent to the following query:
Obtaining Boolean Values
To obtain the opposite Boolean value, call the
The
To obtain the value
The
To obtain the value
The
Determining the Context Node Language
To determine whether the language of the context node is the language you expect it to be, call the
The
If there is no such attribute, then
In both situations, case is ignored. For example:
This returns
|

Cart

