op:lt( $left as item(), $right as item() ) as map:map
This function returns true
if the value of the left expression is
less than the value of the right expression. Otherwise, it returns
false
.
Parameters | |
---|---|
$left | The left value expression. It can be a number, a column function such as op:col, op:view-col, or op:schema-col, or an expression. |
$right | The right value expression. It can be a number, a column function such as op:col, op:view-col, or op:schema-col, or an expression. |
xquery version "1.0-ml"; import module namespace op="http://marklogic.com/optic" at "/MarkLogic/optic.xqy"; let $employees := op:from-view("main", "employees") return $employees => op:where(op:lt(op:col("EmployeeID"), 3)) => op:result()