![]() |
| ||||||
Navigation |
Synopsis Less than operator on values.
Syntax
Exp1 < Exp2
Types
Description By brute force, a total less than operator between two values
V1 and V2 of arbitrary types T1 and T2 is defined:
true if the value of Exp1 is strictly less
than (according to the ordering defined above) the value of Exp2 , and false otherwise.
Examples Introduce two variables
X , Y and Z and force them to be of type value :
rascal>value X = "abc"; value: "abc" rascal>value Y = "def"; value: "def" rascal>value Z = 3.14; value: 3.14Now compare X and Y :
rascal>X < Y;
bool: true
and X and Z :
rascal>X < Z;
bool: false
![]() |