Conditional Statements


There are statements which check for a condition and accordingly the execution flow can be changed. The most common conditional construct is of the format
IF (condition)
 THEN
----------------------
 ELSE
--------------------
Here, if the condition* evaluates to be “true”, THEN part is executed (& ELSE part is skipped) & if it evaluates to “false”, ELSE part is executed ( & IF part is skipped).
*NOTE - the condition should be a valid expression that can be evaluated to either true or false.

Comments

Popular posts from this blog

NICOSIA