CS - 8TH BRIDGE COURSE
CS - 8TH BRIDGE COURSE
SESSION 1
Decision making structures: Decision making statements contain conditions that are
evaluated by the program. If the condition is true, then a set of
statements are executed and if the condition is false then
another set of statements is executed.
IF Statement
An 'if ' statement is used to test general variables (or input
pins) for certain conditions. If the condition is met the
associated command is executed. If not the command is
ignored and program flow continues on the next line
after the 'if' command.
Types:
1. IF ….. THEN Statement
2. IF……THEN…. ELSE Statement
3. IF……THEN…..ELSEIF Statement
4. Nested IF Statement
Select case
A Select Case statement allows a variable to be
Signature of HOD Signature of Co-ordiander Signature of Secretary