8.18/6/2018

LT (function)

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

Syntax

lt( 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(lt(&current.line, 15))
  show('Top of page')
endif()
%Same statement, using the < operator
if(&current.line < 50)
  show('Top of page')
endif()