REBOL Document

=? - Function Summary


Summary:

Returns TRUE if the values are identical.

Usage:

=? value1 value2

Arguments:

value1 - The value1 argument.

value2 - The value2 argument.

Description:

This function returns true if two values are the same. That is, there is no way to distinguish between them. For instance, in the case of a string, they would occupy the same memory.


    a: "apple"
    b: a
    print a =? b
    true


    b: tail a
    print a =? (head b)
    true


    print "apple" =? "apple"
    false

Related:

= - Returns TRUE if the values are equal.
== - Returns TRUE if the values are equal and of the same datatype.
same? - Returns TRUE if the values are identical.


<Back | Index | Next>

Copyright 2004 REBOL Technologies