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

REBOL 3 Functions: same?

same?  value1  value2

Returns TRUE if the values are identical.

Arguments:

value1

value2

See also:

=?   equal?  

Description

Returns TRUE if the values are identical objects, not just in value. For example, a TRUE would be returned if two strings are the same string (occupy the same location in memory). Returns FALSE for all other values.

a: "apple"
b: a
print same? a b
true
print same? a "apple"
false


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