--Originally published at M E R I N O
If statement:
The If statement is a conditional statement and works like this. If a value is true then the instruction stop and the code continues, but if the value is false, the code read the next line on the IF.
The syntaxis is like this:
if expression:
<body>
else:
<body>
Here is an example:
For more details about IF and ELSE you can go to here and here. And also check this blog for more loops wohoo.