You cannot use or statement in functions or procedures like that.
The only way you can use or is like this:
SCAR Code:
//IF- statement
if InFight or (HPPercent < 50) then
begin
writeln('We are either in fight or our HP is below 50%!');
end;
//WHILE-statement
while (TimeFromMark(t)<5000) or InFight do
writeln('Time from mark (t) is under 5 seconds, or we are in fight!');
//REPEAT-loop
repeat
writeln('We are in fight or i > 15!');
until(not InFight or (i<=15));
Actually there are more ways but these are the only ones you need to know