STRUCTURE CONDITIONAL
if-else
The conditional structure if ... else
In the vast majority of the programs it will be necessary to make decisions about what actions to take. Those decisions may depend on the data that the user has entered, if an error has occurred or of anything else.
The conditional structure if ... more is what allows us to make those kinds of decisions. Translating literally English, if you could call the structure "yes ... if not", that is, "if the condition is met, do this, and if not, do this other".
EXAMPLE: