This page was generated
August  8,  2011
2:24  AM
XQuery Built-In and Modules Function Reference

Built-In: Boolean

The boolean built-in functions are XQuery functions to manipulate xs:boolean values. They are defined in XQuery 1.0 and XPath 2.0 Functions and Operators.
Function Summary
fn:false Returns the xs:boolean value false.
fn:not Returns true if the effective boolean value is false, and false if the effective boolean value is true.
fn:true Returns the xs:boolean value true.
Function Detail
fn:false(  ) as  xs:boolean
Summary:

Returns the xs:boolean value false. Equivalent to xs:boolean("0").

Example:
fn:false() 

=> false

fn:not(
$arg as item()*
)  as   xs:boolean
Summary:

Returns true if the effective boolean value is false, and false if the effective boolean value is true. The $arg parameter is first reduced to an effective boolean value by applying the fn:boolean function.

Parameters:
$arg : The expression to negate.

Example:
fn:not(fn:true()) 

=> false
Example:
fn:not("false") 

=> false

fn:true(  ) as  xs:boolean
Summary:

Returns the xs:boolean value true. Equivalent to xs:boolean("1").

Example:
fn:true() 

=> true