Conditional statements
Conditional statements indicate that specific code needs to be executed in a case when conditional statement results to true.
I will go over details of a condition statement later, I am just giving a brief overview of what a conditional statement is.
It is possible to specify more then one condition. The code of the first one which results in true will be executed.
It is possible to have a default section within if statement. Default section is optional. It will be executed only in a case, when all other conditions result in false.
In a chart, if statements are often represented with a rhombus sign. It splits code execution based on outcome of the conditional statement.

Comments
Post a Comment