If

Choose an option based on a condition

Condition Block

You will use this block to define a logic expression. To create a logic expression, you need to define values for the two Variable fields and then select how you want to compare them using the Comparison field.

Comparison Field

After defining a value for the first Variable, you can select an option for the Comparison field.
*Note: You will not be able to select a value for Comparison until a value for the first Variable has been defined. Options include:

  • -Is The Same As
  • -Is Not The Same As
  • -Is Greater Than
  • -Is Less Than
  • -Has Changed By
  • -Has Not Changed By
  • -Has Increased By
  • -Has Decreased By
  • -Has a Value
  • -Does Not Have a Value

Adding Multiple Conditions

By pressing the plus button in the Inputs section, you can add additional conditions. Logical Operators:

  • -And: Use if you want your expression to evaluate to True only when both conditions are True.
  • -Or: Use if you want your expression to evaluate to True when at least one of your conditions are True.

Example

If the value of the variable "temperature" is between 75 and 85, then your program will execute the Print To Log module. If the "temperature" variable is outside of this range, then your program will take the Else path and not execute the Print To Log module. Your program will then continue to run the rest of your modules.