Compares two values and outputs TRUE if they are not equal.
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.
{GIF:HERE} - [Screenshot showing the NE (Not Equal) instruction configuration in the visual editor, with the action set on a step and instruction type set to NE for a boolean comparison variable]
from automation_machine import ActionInstruction
step.add_action("variable_name", "Description", instruction=ActionInstruction.NE)
self.add_step())ActionInstruction.NE