9.3.84 LGE (STRING_A, STRING_B)

Description:  Determines if a string is lexically greater than or equal to another string, based on the ASCII collating sequence, even if the processor's default collating sequence is different. In Compaq Fortran, LGE is equivalent to the >= operator.  
Class:  Elemental function; Generic 
Arguments:  STRING_A   Must be of type character. 
  STRING_B   Must be of type character. 
Results:  The result is of type default logical. 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.

The result is true if the strings are equal, both strings are of zero length, or if STRING_A follows STRING_B in the ASCII collating sequence; otherwise, the result is false. 

Specific Name  Argument Type  Result Type 
LGE 1  CHARACTER  LOGICAL(4) 
1 This specific function cannot be passed as an actual argument.

Examples

LGE ( 'ONE', 'SIX' ) has the value false.

LGE ( 'TWO', 'THREE' ) has the value true.


Previous Page Next Page Table of Contents