Hello! Today we are going to end the series of blog posts about the programming by blockstoday we will discover the conditional blocks.
Throughout the article we will be able to learn the properties of conditionals and the possibilities they bring to programming. To do so, we will use the “Conditionals” activity of our Smile and Learn educational platform.
The Smile and Learn educational platform has more than 7,500 educational activities for students from 3 to 12 years of age. On our platform, children can learn in a dynamic way various contents related to the main educational subjects, either in the classroom or at home. We have curricular content as well as content focused on social and emotional development, in addition to family play activities.
If you want to try it, you can request a Smile and Learn demo for 30 days for free. 30 days free of charge and without obligation
here
.
Hello! Today we are going to end the series of blog posts about the programming by blockstoday we will discover the conditional blocks.
Throughout the article we will be able to learn the properties of conditionals and the possibilities they bring to programming. To do so, we will use the “Conditionals” activity of our Smile and Learn educational platform.
The Smile and Learn educational platform has more than 7,500 educational activities for students from 3 to 12 years of age. On our platform, children can learn in a dynamic way various contents related to the main educational subjects, either in the classroom or at home. We have curricular content as well as content focused on social and emotional development, in addition to family play activities.
If you want to try it, you can request a Smile and Learn demo for 30 days for free. 30 days free of charge and without obligation
here
.
WHAT IS PROGRAMMING
Have you ever wondered how a computer works? We might think that it is an incomprehensible machine but, in reality, it has a very simple operation.
Programming is the language of technology and machines, but it is a very special language because we teach it to them.but it is a very special language because we teach it to them. Imagine you build a robot, assemble its parts and put it on the floor, but it doesn’t move. That robot needs us to teach it how to work, so we have to program it, that is, give you orders or instructions. To understand it better, read on!
CONDITIONAL BLOCKS
In the entry on block programming we learned that each block contains a different command, condition or event. This brings us to a new type of block: conditionals. This block allows us to different actions depending on the variable we indicate. that we indicate to it. There are different types of conditionals, but in our activity we will use the “conditional if“which allows us to perform a given action depending on two variables. Specifically, our character will observe the zebra crossing before crossing, if there are cars he will stop and if there are no cars he will cross.
CONDITIONAL ACTIVITY
To understand it better, see how to overcome the second level of our “Conditionals” activity. As you can see, when we create the conditionals we select what action our character will perform according to the situation. If we do not tell him what to do, our character will not be able to continue. We have programmed it to observe the environment and determine what the situation is: in our case it should see if there are cars on our crosswalk, and after that, it will wait for a command telling it what to do. That is why it is very important to program conditional blocks correctly, indicating the variable and the action.
USEFULNESS FOR PROGRAMMING
Conditional blocks allow us to create much more complex programming. Thanks to them we can adapt the machines more to our needs, since we can create as many variables as we want. Most machines operate under conditions, for example, most cell phones have a warning to take care of our hearing. When we press the volume up button, the phone increases the volume, but when we reach a condition, which would be to have the volume at level 8, it warns us that if we continue to increase the volume we can damage our health. Conditionals are very interesting programming blocks that allow us to achieve a lot of things, practice with them and you will end up becoming a professional programmer.
WHAT ELSE CAN I LEARN?
If you enjoyed the “Conditionals” activity, you can continue your learning with the activities in our activities on our platform Smile and Learn. In particular, you will be able to practice everything you have learned in the posts on block programming. You will love them!