Programs
don’t always run in SEQUENCE and require an element of SELECTION. SELECTION
means that part of the code may be executed depending upon a CONDITION being
met.
Conditions
are made up as follows:
Variable/Value Relational-Operator Variable/Value
Relational
Operators are as follows:
= Equal
To
< Less
Than
<= Less Than or Equal To
> Greater
Than
>= Greater Than or Equal To
<> Not Equal To
Statements Used
IF Condition Then
End IF
This is an example of the work from the Statements worksheet. It shows the use of IF and End |IF. A number is inputted and then the conditions that are met show up. so the number is between 1-20 for example.
No comments:
Post a Comment