LE (Less Than or Equal)
Compares two values and outputs TRUE if the first is less than or equal to the second.
Description
The LE instruction performs a less than or equal comparison. It evaluates whether one value is smaller than or equal to another and writes the boolean result to the target variable.
Use LE instead of LT when you want the comparison to also succeed when the values are exactly equal.
Syntax
- step: the parent step object (from
self.add_step()) - variable_name: the boolean variable that receives the comparison result
- instruction: must be
ActionInstruction.LE
Sequence Visual Editor

The BOOL action variable is TRUE while level is less than or equal to 5.
Python
from automation_machine import ActionInstruction
step.add_action("variable_name", "Description", instruction=ActionInstruction.LE)
See Also
- LT (Less Than): strict less than
- GE (Greater Than or Equal): opposite comparison
- EQ (Equal): equality check
- NE (Not Equal): inequality check
- Action Qualifiers Overview
- Instructions Overview