13,420
edits
Changes
→INVESTIGATION 2: USING LOGIC STATEMENTS
= INVESTIGATION 2: USING LOGIC STATEMENTS =
:In computer programming, control flow statement can be used to change the direction (flow) of a program. In this section, you will focus on LOGIC control flow statements that are used to change the way each script runs, based entirely on input (either user input, or command arguments). In this section, we will discuss several LOGIC control flow statements including: IF, IF/ELSE, IF/ELIF/ELSE. an "if statement" is a condition that executes different code based on whether the condition is True or False.
== PART 1 - Using IF Statements ==
:An '''IF''' statement is a control flow statement that executes or does not execute different code based on whether the condition is '''True''' or '''False'''.
'''Understanding If Statements '''