Developer

<<gt>>

The <<gt...>> function compares arg1 and arg2, based on the value of the “type” parameter if present. It returns true if arg1 is greater than arg2. If arg1 is less than or equal to arg2, it returns false. If the type parameter is not specified, the default comparison is as Strings. When comparing values of different data types, it is strongly recommended that you do specify the type.

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.

Arguments

    <<gt 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.
  • arg2 The second value of the two compared by the function. May be a hard coded value, data tag, or a function.

Parameters

  • type - This optional named parameter specifies how the function will compare the values of the two arguments. The acceptable values for this parameter are
    • Int - The arguments are to be compared as Integral Numbers.
    • Float - The arguments are to be compared as Decimal Numbers (short for “floating point number”)
    • String - The arguments are to be compared as Strings