Programming Reference / Logic / If Then Else


The If Then Else instruction operates similarly to any structured programming version of the same name. The If portion accepts any logical or math function that evaluates to a Boolean TRUE or FALSE value. By default, when you drag the If Then Else instruction into the program, there is only the If portion. There are options to add else and else if modifiers to the overall function.

Click the Settings icon to open the options. From the option window, drag and drop either a single else or multiple else if blocks to the right. You will see the instruction expand vertically for each one you drag and drop.

Else if Modifier

You can drag and drop multiple else if modifiers into the overall If Then Else instruction