The structure of branching statements in Pascal requires the programmer to specify one or more conditions to be evaluated or tested by the program. Along with one or more statements to be executed if the condition is determined to be true, other branching statements in Pascal will be executed if the condition is determined to be false.
Below is the general structure of branching statements in most programming languages:
Pascal programming language provides the following branching statements:
In this article, Mytour has just provided you with information about branching statements in Pascal, along with detailed descriptions of the statements. Explore more about keywords and basic syntax in Pascal to have a better understanding of Pascal language. In the next article, Mytour will further introduce you to record types and set types in Pascal.