Jump to content
Killersites Community
Sign in to follow this  
webmanz

else conditional statements appearance

Recommended Posts

Do "if else" conditional statements only ever appear together? Can you have an 'else' without an 'if and vice versa?

Edited by webmanz

Share this post


Link to post
Share on other sites

Nope. You can have have an if without an else. But you need an if to have an else.

... This is like a tongue-twister!

Stef

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  

×