Sign in to follow this  
patrickokeeffe

elseif statement

Recommended Posts

And you can always do else if, but the if needs to be on a new line and has to have a matching endif. Switch is a better choice.

Share this post


Link to post
Share on other sites

Yeah, I realized I had about four if's nested and all but the innermost one only did something on the if (no else), and the innermost had both cases. I thought "Hey, that's a switch/case, with the else in the innermost if as the default!" So now it is! Fortunately you support empty case's.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this