{"id":3992,"date":"2023-03-02T17:50:18","date_gmt":"2023-03-02T22:50:18","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3992"},"modified":"2023-03-02T17:50:18","modified_gmt":"2023-03-02T22:50:18","slug":"6a-why-do-we-use-if-else-statements","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/03\/02\/6a-why-do-we-use-if-else-statements\/","title":{"rendered":"(6A) Why do we use if\/else statements???"},"content":{"rendered":"<p><span style=\"font-weight: 400\">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.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":29174,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[663943,10531,1],"tags":[],"class_list":{"0":"post-3992","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-instructor","7":"category-student-post","8":"category-uncategorized","9":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/users\/29174"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3992"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3992\/revisions"}],"predecessor-version":[{"id":3994,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3992\/revisions\/3994"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}