AutomationView Documentation

NE (Not Equal)

Compares two values and outputs TRUE if they are not equal.


Description

The NE instruction performs an inequality comparison. It evaluates whether two values are different and writes the boolean result to the target variable.

This is useful for detecting when a variable has changed from an expected value, such as a mode mismatch or an unexpected sensor reading.


Syntax

Sequence Visual Editor

Action recipe_changed with the NE instruction comparing recipe_id and last_recipe_id
The BOOL action variable is TRUE while the operands differ.

Python

from automation_machine import ActionInstruction

step.add_action("variable_name", "Description", instruction=ActionInstruction.NE)

See Also