--Originally published at My Home
The conditional if isn’t something that I haven’t explained before; However, here it goes again.
The if conditional is basically used to make a code more than ready when it confronts 2 or more different situations.
It is helpful when you can have different outcomes in the same code, it could be either beacuse of the interaction of the user or because a function you created earlire has different outcomes.
I don’t think it needs more explaniation than that…