If else Statement
if statements are used to control the flow of code execution. This is best illustrated with an example:
If bAlpha evaluates to TRUE then statement 1 will execute. If it evaluates to FALSE then it will skip to the next if else and evaluate bBravo. If neither bAlpha or bBravo evaluates to TRUE then statement 3 will execute as the default (catch-all).
if statements can also be used alone without if else or else statements:
If bCondition evaluates to FALSE it will skip PrintString("TRUE!") and move on to the next line of code.
author: Ryan Hunt, editor: Charles Feduke