LLE (The GNU Fortran Compiler)

### 8.180 `LLE` — Lexical less than or equal ¶

Synopsis:

  `RESULT = LLE(STRING_A, STRING_B)`

Description:

  Determines whether one string is lexically less than or equal to another string, where the two strings are interpreted as containing ASCII character codes. If the String A and String B are not the same length, the shorter is compared as if spaces were appended to it to form a value that has the same length as the longer.

  In general, the lexical comparison intrinsics `LGE`, `LGT`, `LLE`, and `LLT` differ from the corresponding intrinsic operators `.GE.`, `.GT.`, `.LE.`, and `.LT.`, in that the latter use the processor’s character ordering (which is not ASCII on some targets), whereas the former always use the ASCII ordering.

Class:

  Elemental function

Arguments:

  STRING_A | Shall be of default `CHARACTER` type.
  STRING_B | Shall be of default `CHARACTER` type.

Return value:

  Returns `.TRUE.` if `STRING_A <= STRING_B`, and `.FALSE.` otherwise, based on the ASCII ordering.

Specific names:

  Name | Argument | Return type | Standard
  --- | --- | --- | ---
  `LLE(STRING_A,STRING_B)` | `CHARACTER` | `LOGICAL` | Fortran 77 and later

Standard:

  Fortran 77 and later

See also:

  `LGE` — Lexical greater than or equal,
  `LGT` — Lexical greater than,
  `LLT` — Lexical less than