REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: <

<  value1  value2

Returns TRUE if the first value is less than the second value.

Arguments:

value1

value2

See also:

lesser?   <=   >   >=   =   <>   min   max  

Description

Returns FALSE for all other values. An error will occur if the values are not of the same datatype. For string-based datatypes, the sorting order is used for comparison with character casing ignored (uppercase = lowercase).

print "abc" < "abcd"
true
print 12-June-1999 < 10-June-1999
false
print 1.2.3.4 < 4.3.2.1
true
print 1:30 < 2:00
true
print [1 2 3] < [1 5 3]
true


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin