All programming language has if statements that allow controlling the flow of the program.
With this, you can execute your code only when the condition is true or false.
In the tutorial, I show how you can use if statements in your program with an example in Python.