To determine whether a number is less than another number, use the less than ( < ) operator:
print(4 < 4) //false print(4 < 5) //true print(5 < 4) //false
You can also use the less than or equal to (>= ) operator:
print(8 <= 8) //true print(9 <= 8) //false print(7 <= 8) //true
The < operator also work with strings:
print("abc" < "ABC") //false print("123a" < "123b") //true
The <= operator does not work with the String type.