2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
10 .. index:: lexical comparison of strings
12 .. index:: string, comparison
14 LGE --- Lexical greater than or equal
15 *************************************
17 .. function:: LGE(STRING_A, STRING_B)
19 Determines whether one string is lexically greater than or equal to
20 another string, where the two strings are interpreted as containing
21 ASCII character codes. If the String A and String B are not the same
22 length, the shorter is compared as if spaces were appended to it to form
23 a value that has the same length as the longer.
26 Shall be of default ``CHARACTER`` type.
29 Shall be of default ``CHARACTER`` type.
32 Returns ``.TRUE.`` if ``STRING_A >= STRING_B``, and ``.FALSE.``
33 otherwise, based on the ASCII ordering.
42 .. code-block:: fortran
44 RESULT = LGE(STRING_A, STRING_B)
55 * - ``LGE(STRING_A,STRING_B)``
58 - Fortran 77 and later