If and Else, really simple code, simple explanation.
IF. As you might know, an if statement is the one that allows the user to control if a program enters a section of code or not based on whether a given condition is true or false. One of the… Continue Reading →
Hey there! Here is my video tutorial (in Spanish) for Masteries 15 & 16:
This post is for mastery points 15 and 16: So this time it is about conditional if and using else with a conditional As you may know, an if statement is a fairly simple conditional, yet you can do very interesting things with it. It’s different from a for cycle because with the if condition […]
These are Masteries #15 and #16. I had to use if and else. I used as example the WSQ about the temperature. So, enjoy: https://youtu.be/amSjZHQpKJs
If we want to do an If / Else, we have to decide what parameters we are going to use. For example we want to say that n(number)>50 or n(number)<50 we use an If/Else Now that we have the If/Else we ask to the user for a number for make the If/Else The result is…
If we want to do an If / Else, we have to decide what parameters we are going to use. For example we want to say that n(number)>50 or n(number)<50 we use an If/Else Now that we have the If/Else we ask to the user for a number for make the If/Else The result is…
Description: Use of the conditional “if” and use of “else” with a conditional. A conditional and conditionals within conditionals. What we’d expect at this level already, really. In all seriousness, conditionals are very useful to check wheteher statements are true or not. Video for both masteries here.