BEFOREP

Synopsis
BEFOREP word1 word2
BEFORE? word1 word2
Description

Outputs TRUE if word1 comes before word2 in ASCII collating sequence (for words of letters, in alphabetical order). Case-sensitivity is determined by the value of CASEIGNOREDP. Note that if the inputs are numbers, the result may not be the same as with LESSP. For example, BEFOREP 3 12 is FALSE because 3 collates before 1.

Example
SHOW BEFOREP "ABC "abd
true
SHOW BEFOREP "abd "ABC
false
SHOW BEFOREP "a "a
false

SourceForge.net Logo