◄Keywords► ◄Contents► ◄Index► ◄Back► IF <expression> THEN <statement-block> [ELSE <statement-block>] Description The statement block after THEN is executed if the Boolean expression is True. Otherwise, the statement block after ELSE is executed. The ELSE part is optional. Don't immediately precede ELSE with a semicolon, as the compiler will then treat the semicolon as the end of the IF statement and generate a compiler error when it encounters ELSE. See also: CASE, Conditional statement, Pascal Statement Hierarchy