Operators
Comparisons
Every comparison is an English phrase that yields a boolean.
== was invited. She declined.
| Alana | The usual |
|---|---|
| sameas | == |
| greaterthan | > |
| lessthan | < |
| leorsame | <= |
| grorsame | >= |
| isa | object compatible with a class |
is assigns. sameas compares.
This is the first mistake everyone makes. You are in excellent company.
if x sameas y;
showln x;
elseif x greaterthan y;
showln x;
elseif x lessthan y;
showln x;
end;