Sign in to follow this  
Followers 0
atrX

Scripting Basics: Selection (If-Else)

1 post in this topic

What is an if-else selection?

The if-else statement identifies which statement to run based on a boolean expression. In the following example, var will be set to 1 as condition is set to true:

Please login or register to see this code.

 

If ladders

You can string tons of if statements together to make an if ladder:

Please login or register to see this code.

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0