Use if to specify a block of code to be executed, if a specified condition is true. Use else to specify a block of code to be executed, if the same condition is false.
if (condition) true_actionif (condition) true_action else false_action
(Note braces are only needed for compound expressions)
if (test_expression) { true_action} else { false_action}