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 / Turning if...else...endif to a case statement in DBPro. Help, Please?

Author
Message
Wegues
19
Years of Service
User Offline
Joined: 14th Mar 2005
Location: Liverpool, UK
Posted: 6th May 2005 01:41
I'm trying to turn an if...else...endif into a case statement but didn't understand the index on creating a case can someone help?

The following is the code I want to convert, there will be more if statements later since it is dealing with collision detection.

Emperor Baal
20
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 6th May 2005 05:21
The select / case must be used in this way:



like this:



Wegues
19
Years of Service
User Offline
Joined: 14th Mar 2005
Location: Liverpool, UK
Posted: 6th May 2005 18:10
Thank you. That makes scenes.

So my code would look like this the following:

Login to post a reply

Server time is: 2024-09-23 19:30:04
Your offset time is: 2024-09-23 19:30:04