Navigation
Synopsis The implication operator on Boolean values.
Syntax Exp1 ==> Exp2
Types
Exp1 Exp2 Exp1 ==> Exp2
bool bool bool
Description The implication operator on Boolean values defined as follows:
Exp1 Exp2 Exp1 ==> Exp2
true true true
true false false
false true true
false false true
Boolean operators have short circuit semantics: only those operands are evaluated that are needed to compute the result. In the case of the ==> operator, the result is true if Exp1 evaluates to false, otherwise Exp2 is evaluated to determine the result.
Examples
rascal>false ==> true;
bool: true
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.