Loading TOC...

op:ge

op:ge(
   $left as item(),
   $right as item()
) as map:map

Summary

This function returns true if the value of the left expression is greater than or equal to the value of the right expression. Otherwise, it returns false.

Parameters
$left The left value expression.
$right The right value expression.

Example

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:ge(op:view-col("employees", "EmployeeID"), 3))
    => op:result() 
  

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