GT (Greater Than)
Compares two values and outputs TRUE if the first is strictly greater than the second.
Description
The GT instruction performs a greater than comparison. It evaluates whether one value is strictly larger than another and writes the boolean result (TRUE or FALSE) to the target variable.
This is commonly used in transition conditions or to set flags based on numeric thresholds, such as checking if a temperature exceeds a limit or a counter has passed a target.
Syntax
- step: the parent step object (from
self.add_step()) - variable_name: the boolean variable that receives the comparison result
- instruction: must be
ActionInstruction.GT
Sequence Visual Editor

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