compareNumbers()

Overview

public boolean function compareNumbers(
      required numeric leftHandSide 
    , required string  operator     
    , required numeric rightHandSide
)

Returns true or false based on the comparison of two numbers + the supplied operator. Valid operators are: eq, neq, lt, lte, gt and gte.

Arguments

NameTypeRequiredDescription
leftHandSidenumericYesNumber for the left hand side of the expression
operatorstringYesOperator to use
rightHandSidenumericYesNumber for the right hand side of the expression