September 2013
Beginner
292 pages
6h 19m
English
if-else statements are just like regular if statements with the else option added.
LearningScript as shown in the next screenshot.
Line 14 shows how else, and its code block is simply added after the if code block.
The analysis of code is as follows:
bool theBearMadeBigPottyInTheWoods = false;
The variable theBearMadeBigPottyInTheWoods is assigned the value of false.
if( theBearMadeBigPottyInTheWoods)
Since the condition is false, the code block on lines 11 to ...