If Statement

  • William Buchanan
Part of the Macmillan Master Series book series (PMSC)


A decision is made with the if statement. It logically determines whether a conditional expression is TRUE or FALSE. For a TRUE, the program executes one block of code; a FALSE causes the execution of another (if any). The keyword else identifies the FALSE block. In Pascal, the begin and end keywords are used.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© William Buchanan 1998

Authors and Affiliations

  • William Buchanan
    • 1
  1. 1.Department of Electrical and Electronic EngineeringNapier UniversityEdinburghUK

Personalised recommendations