The if–then construct (sometimes called if–then–else) is common across many programming languages. Although the syntax varies from language to language, the basic structure (in pseudocode form) looks like this:
If (boolean condition) Then (consequent) Else (alternative) End If
Comments
Ever thought of that, pee wee?
More like 'when'.
If (boolean condition) Then
(consequent)
Else
(alternative)
End If