If and Then
English (en) │
Official documentation: FreePascal documentation
if condition then true_statement else false_statement;
Condition is a Boolean expression that evaluates to true or false. true_statement is executed if condition evaluates to true. false_statement is executed if condition evaluates to false. An error (What error? Run-time? Compile-time? What number? An exception perhaps? Please fix this) occurs if condition does not evaluate to a boolean value.
More statements in "if then" statement
if boolean_condition then begin statement_one; statement_two; statement_three; end;