This demo uses an if statement to check a condition and call a function when the condition is true.
Output: