AutomationView Documentation

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

Sequence Visual Editor

Action tank_empty with the LE instruction comparing level and 5
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