What's the difference else/non else

Get help using Construct 2

Post » Sat Nov 24, 2012 6:08 pm

If I have a bunch of error codes I'm stringing through say:
var error = "yup_you_messed_up"

do I just have a bunch of statements:
queryparam("error") = "awesome" run statement

queryparam("error") = "yup_you_messed_up" run statement

or do I add an else for each line:
queryparam("error") = "awesome" run statement

else
queryparam("error") = "yup_you_messed_up" run statement

Is there a right way to do this? I want to check for about 30 error codes altogether.
www.h1k3.tech

We are here for you!
B
90
S
24
G
16
Posts: 716
Reputation: 17,022

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests