Hi guys, in this post I’m going to explain briefly how to use the conditional ” if ” and how to use ” else ” with a conditional too.
Every conditional has to have at least two parameters, for example I want to evaluate a number, I want to see if the number is bigger or smaller than any number that I choose.
If any number is bigger than another number: n > 30 we have to write this:
And if we want to evaluate if the number is smaller we use Else:
Here is the result for this example:
#Masteries 15 y 16 by jsphsalazar is licensed under a Creative Commons Attribution 4.0 International License.