8.18/6/2018

NE (function)

Compares two expressions of any type and returns true if they are not equal, false otherwise. This is the functional equivalent to the <> operator.

Syntax

ne( 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 show both ways of comparing two expressions.

Example 1


if( ne(&current.line, 1) )
  show('Not a new page')
endif()


 

Example 2


if(&current.line <> 1) %Same statement, using the <> operator
  show('Not a new page')
endif()