The system function MathLib.compareNum returns a result (-1, 0, or 1) that indicates whether the first of two numbers is less than, equal to, or greater than the second.
MathLib.compareNum( numericField1 mathLibNumber in, numericField2 mathLibNumber in) returns (result mathLibTypeDependentResult)
myItem01 = 4 myItem02 = 7 result = MathLib.compareNum(myItem01,myItem02); // result = -1
Related concepts
Syntax diagram for EGL functions
Related reference
EGL library MathLib