Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Syntax error. Nesting error

Author
Message
Jedi Master Slayn
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location:
Posted: 26th Nov 2002 16:59
Hi guys.

If i use the IF ELSE ENDIF command, I get a Syntax error. Nesting error. It's on the ENDIF.


Please help.
empty
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 26th Nov 2002 17:11
If you want to use the IF ELSE ENDIF structure you need to omit THEN and put the following statement in a new line.

if file exist("c:\Program Files\Dap\DAP.exe")
print "Hallo"
else
print "doei"
endif

Ogres have layers.
Jedi Master Slayn
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location:
Posted: 26th Nov 2002 17:18
Thanx

Login to post a reply

Server time is: 2024-03-01 05:15:07
Your offset time is: 2024-03-01 05:15:07