This page demistrates "if" statements and how they can be used.

Code Output
code

Initial Start:

Run 1:

Run 2:

code

Inital Start:

1st run

Run1:

2nd run

Run 2:

3rd run

Run 3:

3rd run

Division with int and double:  

Div code
Div Output

Mulplication with int and double:  

Mult code
Mult Output

Boolean Example:  

bool code
bool Output

MOD Example:

MOD Code