weaselforce
2006-04-06 21:20:56
Procedure BankingWithdraw;
begin
if(inventorycount>0)then
DepositAll;
end else
says there should be a semicolon instead of "else"
its an if then statement…
2006-04-06 21:20:56
Procedure BankingWithdraw;
begin
if(inventorycount>0)then
DepositAll;
end else
2006-04-06 21:24:38
Procedure BankingWithdraw;
begin
if(inventorycount>0)then
[I]begin[/I]
DepositAll;
end else
2006-04-06 21:25:40
2006-04-06 21:40:21
2006-04-06 22:01:52
2006-04-06 22:04:50
2006-04-06 22:05:57
Procedure BankingWithdraw;
begin
if(inventorycount>0)then
DepositAll
end
else2006-04-07 01:34:27
Procedure BankingWithdraw;
begin
if(inventorycount>0)then
DepositAll
else
DoSomethingElse;
end;
begin
if(1 = 1)then
begin
Writeln('First thing');
Writeln('Second thing');
end;
end.
If i only wanted to do the first thing i wouldn't put in a begin and end:
begin
if(1 = 1)then
writeln('First thing');
end.
:)
2006-04-07 01:43:45
2006-04-07 01:45:46
From: phantombmx
haha kane i put a begin-end in there anyway.. just to understand it in the little world that is mine :p :D
2006-04-07 01:57:53
From: XxKanexX
Most people do that. It dosn't make a difference. ;) Either ways fine.
I find that adding a Begin and End even if it's just 1 function makes it more legible anyway. I just learnt that way. :p
2006-04-07 02:28:02
2006-04-07 06:21:38
From: weaselforce
yea works great, so weird though, they were all working fine. then POOF!