8.18/6/2018

LE (function)

Compares two expressions of any type and returns true if the first is less than or equal to the second, false otherwise. This is the functional equivalent to the <= operator.

Syntax

le( expression1, expression2 ) Boolean value

Arguments

expression1, expression2

Values of any type. Both expressions must be of the same type.

Code Sample Example

This example shows both ways of comparing two expressions.

Example


if(le(&current.line, 15) )
  show('Top of page')
endif()
%Same statement, using the <= operator
if(&current.line <= 50)
  show('Top of page')
endif()