LT (Less Than)
Compares two values and outputs TRUE if the first is strictly less than the second.
Description
The LT instruction performs a less than comparison. It evaluates whether one value is strictly smaller than another and writes the boolean result to the target variable.
This is commonly used for detecting when a measured value drops below a minimum threshold, such as a low-level alarm or an under-speed condition.
Syntax
- step: the parent step object (from
self.add_step()) - variable_name: the boolean variable that receives the comparison result
- instruction: must be
ActionInstruction.LT
Sequence Visual Editor

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