08 - If Statement with Function

Concept

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

Result

Output:

Back