1. Simple Expressions

    You can embed Logical Expressions inside if, if:else, and while actions. The following gives you some examples of what can be done using Logical Expressions.

    1 == din[1].state

    100 <= temp[1].fahrenheit

    You can use Signal Names in place of the Value Syntax

    1 == fire_alarm

    100 <= outside_temp_f

  2. Complex Expressions

    More complex expressions can be implemented using && (AND), || (OR) and parenthesis.

    100 <= outside_temp_f && 0 == sprinkler