op:not( $operand as item() ) as map:map
This function returns true
if neither of the specified boolean expressions
return true
. Otherwise, it returns false
.
Parameters | |
---|---|
$operand | Exactly one boolean expression, such as op:and or op:or, or op:is-defined. |
xquery version "1.0-ml"; import module namespace op="http://marklogic.com/optic" at "/MarkLogic/optic.xqy"; op:from-literals(( map:entry("group", 1) => map:with("val", 2), map:entry("group", 1) => map:with("val", 4), map:entry("group", 2) => map:with("val", 3), map:entry("group", 2) => map:with("val", 5), map:entry("group", 2) => map:with("val", 7) )) => op:where(op:not(op:eq(op:col("group"), 2))) => op:result()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.