Navigation
Synopsis Less than or equal operator on string values.
Syntax Exp1 <= Exp2
Types
Exp1 Exp2 Exp1 <= Exp2
str str bool
Description Yields true if the string value of Exp1 is lexicographically less than the string value of Exp2 or if both string are equal, and false otherwise.
Examples
rascal>"abc" <= "abc";
bool: true
rascal>"abc" <= "abcdef";
bool: true
rascal>"abc" <= "defghi";
bool: true
rascal>"abc" <= "a";
bool: false
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.