If Else Statements
Making Binary Pathways
By using an else
statement, we can handle for situation when an if
statement's boolean expression is false
.
This allows us to react to a condition being false
, and it will allow our program to be more complex.
Common Mistakes
the
else
statement is only related to__CONDITIONB__
you cannot have a random
else
statement without it being attached to an if statement prior to it
Last updated