# Operators and conditional statement

**If Statement**
```
if test expression:
　　statement1
　　statement2

else:
　　statement3
　　statement4
```
> Only indented statements will be run.
- If the test expression is true, run statement1 and statement 2.
- If the test expression is false, run statement3 and statement 4.

```
if 1 == 1:
  print('True!')
else:
  print('False!')
```
```
True!
```


```
if 1 != 1:
  print('True!')
else:
  print('False!')
```
```
False!
```


### If... elif... else ###
> used when conditions are more than one.

```
If <test expression>:
　　<statement1>
　　<statement2>
　　...
elif <expression>:
　　<statement1>
　　<statement2>
　　...
elif <expression>:
　　<statement1>
　　<statement2>
　　...
else:    # NO exp. after else!
　　<statement1>
　　<statement2>
```



