Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

$Compare

Compare two values numerically or as case-sensitive strings.

Script usage:

$Compare(Arg1, Operator, Arg2, [AsNumber])

Parameters:

NameDescription
☆ Arg1The left-hand side of the comparison.
☆ OperatorOne of: <, >, <=, >=, =, !=
☆ Arg2The right-hand side of the comparison.
AsNumberOverride number detection. True causes an error if the arguments cannot be parsed as numbers. False always compares them as strings.