<
Operator - Test if first input is less than second input.
Inputs
Input |
Data type |
Description |
IN1 |
ANY |
First input. |
IN2 |
ANY |
Second input. |
Outputs
Output |
Data type |
Description |
Q |
BOOL |
TRUE if IN1 < IN2. |
Remarks
Both inputs must have the same type. In LD language, the input rung (EN) enables the operation, and the output rung is the result of the comparison.
Comparisons can be used with strings. In that case, the lexical order is used for comparing the input strings. For instance, "ABC" is less than "ZX" ; "ABCD" is greater than "ABC".
ST Language
Q := IN1 < IN2;
FBD Language
LD Language
The comparison is executed only if EN is TRUE:
Created with the Personal Edition of HelpNDoc: Maximize Your CHM Help File Capabilities with HelpNDoc