LGT — Lexical greater than¶
- LGT()¶
Determines whether one string is lexically greater than 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.
- Parameters
STRING_A – Shall be of default
CHARACTER
type.STRING_B – Shall be of default
CHARACTER
type.
- Returns
Returns
.TRUE.
ifSTRING_A > STRING_B
, and.FALSE.
otherwise, based on the ASCII ordering.
Standard:
Fortran 77 and later
Class:
Elemental function
Syntax:
RESULT = LGT(STRING_A, STRING_B)
Specific names:
Name
Argument
Return type
Standard
LGT(STRING_A, STRING_B)
CHARACTER
LOGICAL
Fortran 77 and later
See also:
LGE, LLE, LLT