September 2017
Beginner
402 pages
9h 52m
English
This collection of string comparison operators perform operations greater (gt), greater or equal (ge), later (lt), and less or equal (le) respectively. The operators work with strings, so the operands are converted to the Str type if necessary. The return value is a Boolean value.
say 'a' lt 'b';say 'beer' le 'water';say 'z' gt 'x';say 'stone' ge 'paper';
In all the preceding examples, the result is True.
Read now
Unlock full access