If-then-else statements are used to check for certain conditions and to provide alternative results based on the different conditions. Specifically the if-then-else statement is useful to prevent a division-by-zero situation.
An If-then-else can also be “nested” which means setting up more conditions (and actions when the conditions are met) inside one if-sentence.
- if [A] then [B] else [C]
- if [A] then [B] else if [C] then [D] else [E]
Please sign in to leave a comment.