RosettaCodeData/Task/Conditional-structures/Lisaac/conditional-structures-1.li...

14 lines
226 B
Plaintext

+ n : INTEGER;
n := 3;
(n = 2).if {
IO.put_string "n is 2\n";
}.elseif {n = 3} then {
IO.put_string "n is 3\n";
}.elseif {n = 4} then {
IO.put_string "n is 4\n";
} else {
IO.put_string "n is none of the above\n";
};