If-then-else statements

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]
Was this article helpful?
0 out of 1 found this helpful



Please sign in to leave a comment.