LGT intrinsic function
Standard: F77 F90 F95 F2003 F2008
Example Program

STRING_A : Character with default kind or ASCII kind;
STRING_B : Same type and kind as STRING_A, conformable with STRING_A;

Result : Logical with default kind.
The result is the comparison STRING_A>STRING_B, using the ASCII collating sequence. This can differ from the > operator only for default kind, and then only if default kind is not one of the ISO 646 or 8859 encodings; at this time, nearly all computers use the ISO 646 or 8859 encodings, and only some IBM mainframes use EBCDIC.

Like many intrinsic functions, this is elemental; if either (or both) of STRING_A and STRING_B is an array, the result will be an array with that shape, with the value being computed elementwise.

LGE intrinsic function, LLE intrinsic function, LLT intrinsic function.