Loading TOC...

MarkLogic 10 Product Documentation
fn.not

fn.not(
   arg as Sequence
) as 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(true)

=> false

Example

fn.not("false")

=> false

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.