Good Day
The THEN
and ELSE
are
brackets that show the true branch
of the structure.
The ELSE
and END IF
are
brackets that show the false branch
of the structure.
PRINT "Enter the hour of the day 0-23" INPUT HOUR IF HOUR < 12 THEN PRINT "Good Morning" ELSE PRINT "Good Day" END IF END
Without any control structure affecting them, statements execute in sequential order. Brackets are needed only for loops and two-way decisions, where the normal sequential execution is altered.
Can the true branch and the false branch contain more than one statement?