LLT

Elemental Intrinsic Function (Generic): Determines whether a string is lexically less than another string, based on the ASCII collating sequence, even if the processor's default collating sequence is different. In Compaq Fortran, LLT is equivalent to the < operator.

Syntax

result = LLT (string_a, string_b)

string_a
(Input) Must be of type character.

string_b
(Input) 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 string_a precedes string_b in the ASCII collating sequence; otherwise, the result is false. If both strings are of zero length, the result is also false.

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

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

See Also: LGE, LGT, LLE, ASCII and Key Code Charts

Examples

LLT ( 'ONE', 'SIX' ) has the value true.

LLT ( 'ONE', 'FOUR' ) has the value false.

The following shows another example:

LOGICAL L
L = LLT ('ABC', 'ABC')     ! returns .FALSE.
L = LLT ('AAXYZ', 'ABCDE') ! returns .TRUE.