Skip to content
Martin Danielsson edited this page Jul 23, 2015 · 2 revisions

The Less and LessEqual operators compare two parameters and returns boolean true if the first parameter is less than (or equal to) the second parameter.

These two parameters behave differently depending on the parameters return types:

  • If both parameters return an int value, the operation compares the values numerically
  • Otherwise, the operation compares the values as string values.
What Type
Syntax Less[Equal](a, b)
a int, string
b int, string
Return type bool

Examples:

  • Less("Peter", "Paul") returns false
  • Less("Amanda", "Amanda") returns false
  • LessEqual("Amanda", "Amanda") returns true
  • LessEqual(50, 70) returns true
  • Less("99929928989238923", "Aaron") returns true (as the values are treated as strings)
Clone this wiki locally