Visible to Intel only — GUID: GUID-6987B966-7266-4707-8B0B-3F09304D6B27
Visible to Intel only — GUID: GUID-6987B966-7266-4707-8B0B-3F09304D6B27
LLE
Elemental Intrinsic Function (Generic): Determines whether a string is lexically less than or equal to another string, based on the ASCII collating sequence, even if the processor's default collating sequence is different. In Intel® Fortran, LLE is equivalent to the (.LE.) operator.
result = LLE (string_a,string_b)
string_a |
(Input) Must be of type character. |
string_b |
(Input) Must be of type character. |
Results
The result type is default logical. If the strings are of unequal length, the comparison is made as if the shorter string were extended on the right with blanks, to the length of the longer string.
The result is true if the strings are equal, both strings are of zero length, or if string_a precedes string_b in the ASCII collating sequence; otherwise, the result is false.
Specific Name |
Argument Type |
Result Type |
---|---|---|
LLE 1,2 |
CHARACTER |
LOGICAL(4) |
1This specific function cannot be passed as an actual argument. 2The setting of compiler options specifying integer size can affect this function. |
Example
LLE ( 'TWO', 'THREE' ) has the value false.
LLE ( 'ONE', 'FOUR' ) has the value false.
The following shows another example:
LOGICAL L
L = LLE('ABC', 'ABC') ! returns .TRUE.
L = LLE('ABC', 'AABCD') ! returns .FALSE.