Skip to main content

String LessThanOrEqual

rascal-0.40.17

Synopsis

Less than or equal operator on string values.

Syntax

Exp₁ <= Exp₂

Types

Exp₁Exp₂Exp₁ <= Exp₂
strstrbool

Description

Yields true if the string value of Exp₁ is lexicographically less than the string value of Exp₂ 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