macintosh_cookbook/examples/logic.pas

19 lines
267 B
ObjectPascal
Raw Normal View History

2020-05-07 09:47:11 +00:00
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.