8.18/6/2018

GT (function)

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

Syntax

gt( expression1, expression2 ) Boolean value

Arguments

expression1, expression2

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

Code Sample Examples

Examples 1 and 2 illustrate both ways of comparing two expressions.

Example 1


if( gt(&current.line, 50) )
  show('Bottom of page')
endif()

 

Example 2


if(&current.line > 50)
  show('Bottom of page)
endif()