macintosh_cookbook/examples/logic.pas
2020-05-07 18:47:11 +09:00

19 lines
267 B
ObjectPascal

program ExampleLogic;
{Comment}
var
name: String;
begin
ShowText;
name := 'alice';
if (name = 'alice') then
Writeln('The name is alice.')
else if (name = 'bob') then
Writeln('The name is bob.')
else
Writeln('The name is not alice nor bob.');
end.