I still have a low understanding of the if/else statements but it is a learning process. I know that based on the previous assignments, if/else statements can be used to decide based conditions or to set conditions. These condition statements would let us know if the function is true or false. If the condition happens to be true, it will continue the loop until it is proven false. If the condition happens to be false, the coding block will be exterminated. These if/else statements could be made in easy scripts, to difficult algorithms. Normally, for these conditions, you would have to make sure that it makes sense and put certain variables right before others. I personally think that this is just the surface level of what if/else statements could really do. Even now, it can still get a little bit tricky, but as they say, practice makes perfect.
Reader Interactions
Comments
Leave a Reply
You must be logged in to post a comment.
Hi Lamine!
I completely agree with you that all this coding language can get confusing. There are so many different terms and functions that I struggle to keep them all straight. However, I think you did a great job at explaining if/else statements! I like to think that “if” the information is true then it results in this, but if it is false then it results in this. Basically, this code will have different results if the information is deemed true and different results if the information is deemed false. I agree that we are just truly covering the surface level. While I find coding to be difficult, I do also find it to be fascinating. I had no idea all of what code can do and how simple it really is to program things! Great post!