Help Contents / Data Structure Primitives / Predicates / beforeP

beforeP word1 word2
before? word1 word2

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 after 1. 

Examples: 

	before? 3 12		;false  ;-) 
	less? 3 12		;true  ;-) 
	before? "A "B		;true  ;-) 
	before? [A] [B]		;true  ;-) 
	before? [World] [Hallo]		;false  ;-) 


previous: equalP	next: _eq
