RosettaCodeData/Task/Conditional-structures/Inform-7/conditional-structures-1.inf

15 lines
252 B
INI

[short form]
if N is 1, say "one.";
otherwise say "not one.";
[block form]
if N is 1:
say "one.";
otherwise if N is 2:
say "two.";
otherwise:
say "not one or two.";
[short and long forms can be negated with "unless"]
unless N is 1, say "not one."