Functions: GreaterThan, LessThan, EqualTo

Applies to Infiniti v8.1 or later

 
This group of functions compare their parameters. A true result of 1 or a false result of 0 is returned. These functions are often used in conjunction with the IIf function to return a string or value other than 0 or 1.

Usage:

IsEqual( p[1], p[2], .., p[n] )
IsNotEqual( p[1], p[2])
IsGreaterThan( p[1], p[2])
IsLessThanOrEqualTo ( p[1], p[2])

Parameters:

p[n] Each parameter is an expression that is evaluated and then compared to the other parameter to determine a true or false value.

Example:

IIf(IsEqual(0, 1 - 1), "Values are equal!", "Values are unequal!")

 

Related Articles

 

Keywords

functions is greater equal less