AutomationView Documentation

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

Sequence Visual Editor

Action overheat with the GT instruction comparing temperature and 80
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