Footy
2012-11-01 17:50:34
Say I have a case statement, and I want something to happen if the variable inv is one of many un-consecutive numbers. Can I make this one line, or do I have to make many lines like below?
I tried or like below, but it didn't work. It compiled, but didn't write the line. Help would be appreciated! :)
case inv of
1: Something;
5: Something;
9: something;
13: something;
18: something;
21:something;
25: something;
end;I tried or like below, but it didn't work. It compiled, but didn't write the line. Help would be appreciated! :)
program new;
{$i srl/srl.simba}
const
ran = 20;
begin
SetupSRL
case ran of
10 or 20: writeln('Yay');
end;
end.