34,333
edits
Changes
→Using if ... else .. to Make Decisions
Clearly, x is indeed greater than 9 causing the message to appear in the console window.
== Using if ... else .. to Make Decisions Statements ==
The next variation of the ''if'' statement allows us to also specify some code to perform if the expression in the ''if'' statement evaluates to ''false''. The syntax for this construct is as follows: