September 2017
Beginner
402 pages
9h 52m
English
The leg operator got its name from the words less, equal, greater. It compares two operands as strings. If the values are not strings, they are stringified first.
say 10 leg 2; # Lesssay "10" leg "2"; # Lesssay 5 leg "5"; # Same
The result is one of the values of the Order enumeration (notice that, despite the e in the operator name, the equality of operands returns the value of Same).
Read now
Unlock full access