Loading TOC...
Matches for cat:function/javascript (cat:function/javascript (cat:function/javascript (cat:function))) have been highlighted. remove

MarkLogic 12 Product Documentation
op.le

op.le(
   valueExpression as String,
   valueExpression as String
) as booleanExpression

Summary

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

Parameters
valueExpression The left value expression. It can be a number, a column function such as op.col, op.viewCol, or op.schemaCol, or an expression.
valueExpression The right value expression. It can be a number, a column function such as op.col, op.viewCol, or op.schemaCol, or an expression.

Example

const op = require('/MarkLogic/optic');
const employees = op.fromView('main', 'employees');
 
employees.where(op.le(employees.col('EmployeeID'), 3))
.result();
  

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