This demo uses an if/else statement to test a condition and display one message if true and another if false.
Output: