Boolean functions

This section describes the Boolean functions that are available in expressions.

boolean

Converts a given value to an equivalent boolean value. This function is useful for testing for the existence of a node in the data model.

Syntax

    boolean(Expression)

Parameters

Expression 

Returns

A boolean value.

Example

The following XPath expression returns true because the stringVar node exists in the process data model:

boolean(/process_data/@stringVar)

false

Returns false. This function is useful when you need to compare boolean values to a value of false, or set the value of a data item to false.

Syntax

    false()

Parameters

None.

Returns

A boolean value of false.

Example

The following route condition tests whether the /process_data/stringVar node does not exist in the process data model:

/process_data/@stringVar = false()

The following Set Value mapping sets the value of the booleanVar node to false:

/process_data/@booleanVar = false()

not

The inverse value of a given boolean value.

Syntax

    not(boolean)

Parameters

A boolean value.

Returns

A boolean value of true if the parameter boolean is false, otherwise false.

true

Returns true. This function is useful when you must compare boolean values to a value of true, or set the value of a data item to true.

Syntax

    true()

Parameters

None.

Returns

A boolean value of true.

Example

The following route condition tests whether the /process_data/stringVar node exists in the process data model:

/process_data/@stringVar = true()

The following Set Value mapping sets the value of the booleanVar node to true:

/process_data/@booleanVar = true()