In this article, you will learn "**if**", "**else**" and "**elif**" statements with coding examples. These statements are used for decision making. This is not much different than real life. We will be using arithmetic comparisons that are used in math. This statement will check whether a certain condition is satisfied or not. If the statement is satisfied the value is "True" and if not, it is "False". Understanding this article is not harder than understanding the previous sentence.

**Prerequisites:**

2- Booleans

I want to start by explaining the operators we will use in this article. Don´t worry! This is simple.

- Equals ==> "
**==**" - Not Equals ==> "
**!=**" - Less than ==> "
**<**" - Less than or equal to ==> "
**<=**" - Greater than ==> "
**>**" - Greater than or equal to ==> "
**>=**"

Let´s start with a simple example and then we go more complicated each time.

**Code: **

>>>a = 5 # defining a var

>>>b = 7 # defining a var

>>>if a < b: # defining a if statement. The statement is "**a**" is smaller than "**b**".

>>> print('"a" is smaller than "b"') # We are printing, if our "**if**" statement is true. In this case it is true. if you don´t know escape squences please read, Strings.

**Output: **