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 / Help with IF statements

Author
Message
Xenocythe
20
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 26th May 2005 08:55

I think you see what i'm trying to do, but apparently thats an incorrect statement.

I want it to cls then goto startgame. How do I put that statement together?

Enjoy Life while your still alive.
Enjoy a recees anytime!
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 26th May 2005 20:43 Edited at: 26th May 2005 20:45


You can use IF...THEN..., but it can only execute one command.

You can also put more than one statement on a line, but you use a colon (:), not a semi-colon.

You cannot put an IF...THEN... and get it to execute multiple statements on one line.

Good Luck!

BatVink
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 26th May 2005 22:57
I'm not entirely sure what you mean by that, BatVink...



That works.


"Lets migrate like bricks" - Me
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 27th May 2005 00:38
My misunderstanding. I didn't realise it would read to the end of the line.

Cheers

BatVink
the fake Mr T
19
Years of Service
User Offline
Joined: 6th Jun 2005
Location:
Posted: 14th Jun 2005 23:07
also `;` works aswell, you simply needed a space after the cls
i.e.

there that should work, dbc is very fussy about spaces.

Login to post a reply

Server time is: 2025-06-02 16:26:12
Your offset time is: 2025-06-02 16:26:12