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
- step: the parent step object (from
self.add_step()) - variable_name: the boolean variable that receives the comparison result
- instruction: must be
ActionInstruction.NE
Sequence Visual Editor

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
- EQ (Equal): opposite of NE
- GT (Greater Than): strict greater than
- LT (Less Than): strict less than
- Action Qualifiers Overview
- Instructions Overview