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

REBOL 3 Functions: equal?

equal?  value1  value2

Returns TRUE if the values are equal.

Arguments:

value1

value2

See also:

=   <>   ==   =?   not-equal?   strict-equal?  

Description

String-based datatypes are considered equal when they are identical or differ only by character casing (uppercase = lowercase). Use == or find/match/case to compare strings by casing.

print equal? 123 123
true
print equal? "abc" "abc"
true
print equal? [1 2 3] [1 2 4]
false
print equal? 12-june-1998 12-june-1999
false
print equal? 1.2.3.4 1.2.3.0
false
print equal? 1:23 1:23
true


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