ok i fixed it ill explain it.
Code:
program talk;
const
aorb=(''); // a=Hellow World! b=Hello Peeps
procedure Hello;
begin
if(aorb=('a'))then
begin
wait(1000)
writeln('Hello World!')
end;
end;
procedure Hello2;
begin
if(aorb=('b'))then
begin
wait(1000)
writeln('Hello Peeps!')
end;
end;
begin
repeat
hello;
hello2;
until(false)
end.
1-You dont need 2 main loops( the end. part) for each procedure to repeat.
2-for the if thing
go into the const or make it under program blah;
then put w/e you want into it like
saythisorthat=('this');
it always needs a semicolon at the end.
then in a procedure after the thing put.
if(saythisorthat=('this'))then
but that doesnt need a semi colon.
but for every start round '(' it needs a extra clode round ')'.
Also you need a diffrent word to put in there for the second procedure.
Finally make sure you have a qoute, you make qoutes like this // (to forward slashes) and '{' to make a start and a end thing.To end the qoute with '{' just put a '}' after it.You can do that to leave notes to tell people what the stuff in the const means
For further and better options for this post or PM me.