Try TT Now

ADL®

If Then Else Block

When the True/False statement is TRUE, Variable output will channel the value of the input , but when is FALSE, will channel the value of .

 
Recommended Tutorials For This Section

For a tactile learning experience, please try the following tutorial:

  • If Then Else Block
Operations
  • Keep in mind that inputs and must be of the same type. Their type will automatically determine the type for the output .
Details

Multiple If-Then-Else Blocks can be linked together to define nested if-then-else statements as shown in the following example. To find the correct output of nested If-Then-Else Blocks, always start with the right-most If-Then-Else Block and trace the logical pathway to the left until arriving at an output.

Example. Nested If-Then-Else Blocks