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

REBOL 3 Functions: lesser-or-equal?

lesser-or-equal?  value1  value2

Returns TRUE if the first value is less than or equal to the second value.

Arguments:

value1

value2

See also:

<=   <   >   >=   =   <>   min   max  

Description

Returns FALSE for all other values. For string-based datatypes, the sorting order is used for comparison with character casing ignored (uppercase = lowercase).

print lesser-or-equal? "abc" "abd"
true
print lesser-or-equal? 10-June-1999 12-june-1999
true
print lesser-or-equal? 4.3.2.1 1.2.3.4
false
print lesser-or-equal? 1:23 10:00
true


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