The <<le...>> function compares arg1 and arg2, based on the value of the type parameter if present. It returns true if arg1 is less than or equal to arg2. If arg1 is greater than arg2, it returns false. If the type parameter is not specified, the default comparison is as Strings.
When a type is specified any values not of that type are converted prior to the comparison. So, if an integral data tag contains a value of 10 and a decimal number contains a value of 10.1, and the type is Int, these two values would be considered equal, as the decimal value would be converted to an integer, and the decimal portion is truncated. String comparisons are made based on alphabetical order.
<<le arg1 arg2 [type=Int|Float|String]>> | |
---|---|
arg1 | The first value of the two compared by the function. May be
a hard coded value, data tag, or a function. The data type of the
value must be Integral Number, Decimal Number, or String. |
arg2 | The second value of the two compared by the function. May be
a hard coded value, data tag, or a function. The data type of the
value must be Integral Number, Decimal Number, or String. |