Less Than
Tests if one value is LESS THAN another one (on integer, real, bool, time, and message variables).

Arguments | ||
---|---|---|
IN1 | DINT - BOOL - MESSAGE - REAL - TIME | Both inputs must have the same type |
IN2 | DINT - BOOL - MESSAGE - REAL - TIME | |
Q | BOOL | TRUE if IN1 < IN2 |
Example
(* FBD example with "Less than" Operators *)

(* ST Equivalence: *)
aresult := (10 < 25); (* aresult is TRUE *)
mresult := ('z' < 'B'); (* mresult is FALSE *)
Provide Feedback