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.

Newcomers DBPro Corner / Having a bad day.... If statments...

Author
Message
Colin Hart
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location: United Kingdom
Posted: 10th Aug 2004 02:40
I'm having trouble believe it or not with a basic If statment.. any guesses why the 2nd if statment will not work???? I have tried putting intot a full statment...

if keystate()=59 then
gosub _buildgrid
endif

and witht the 59 in the brackets....

If any one can help... Thank you

Colin.
Indian Homie G
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: San Jose, CA
Posted: 10th Aug 2004 02:55
Yep buddy I know exactly what youre doing wrong. You have on the first line:


See what you are trying to do is use an endif. You use an endif you like want multiple things to happen if one thing is happening. So basically in your case you need to take out the "then". So your code will look like this:



Hope that made sense...Post back if you dont get it and ill explain a little more. Cheers!
Colin Hart
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location: United Kingdom
Posted: 10th Aug 2004 04:06
Thank you very much...

Its a blond Monday....
Indian Homie G
20
Years of Service
User Offline
Joined: 23rd Jan 2004
Location: San Jose, CA
Posted: 10th Aug 2004 04:22
Haha, no problem

Login to post a reply

Server time is: 2024-09-22 20:29:05
Your offset time is: 2024-09-22 20:29:05