Purpose
Test whether a string is lexically
greater than another string, based on the ASCII collating sequence.
Argument type and attributes
- STRING_A
- An INTENT(IN) CHARACTER
- STRING_B
- An INTENT(IN) CHARACTER
Result type and attributes
Default logical.
Result value
- 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.
- If either string contains a character not in the ASCII character
set, the result is undefined.
- The result is true if STRING_A follows STRING_B in the ASCII collating
sequence; otherwise, the result is false. Note that the result is
false if both STRING_A and STRING_B are of zero length.
Examples
LGT ('ONE',
'TWO') has the value .FALSE..
Specific Name |
Argument Type |
Result Type |
Pass As Arg? |
LGT |
default character |
default logical |
yes 1 |
Note: - 1 IBM extension: the
ability to pass the name as an argument.
|