if , itches my brain
#7

Quote:
Originally Posted by Kingunit
View Post
I always use just "if" "if" "if". I don't see the point of "if" "else if" "else if"
The point of using else if is so that if one statement above it is true, it wont continue to the next statement and continue to check.

I'm guessing you can't use switch because the pickup id's aren't static (pickup id's are assigned to variables).

And to answer your question, for dialogs (since dialogs are static id's), you should use a switch statement.
And for the pickups, if you aren't going to use static id's, it is recommended to do a
Code:
if
else if
else if
type structure.
Reply


Messages In This Thread
if , itches my brain - by cmg4life - 25.08.2011, 13:03
Re: if , itches my brain - by Johndaonee - 25.08.2011, 13:14
Re: if , itches my brain - by cmg4life - 25.08.2011, 13:29
Re: if , itches my brain - by WooTFTW - 25.08.2011, 13:30
Re: if , itches my brain - by Mean - 27.08.2011, 23:30
Re: if , itches my brain - by Kingunit - 28.08.2011, 00:42
Re: if , itches my brain - by lolumadd_ - 28.08.2011, 00:47
Re: if , itches my brain - by =WoR=Varth - 28.08.2011, 02:35
Re: if , itches my brain - by AndreT - 28.08.2011, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)