Returns whether the specified objects are the same.
Syntax
equals( object1 , object1 )
object1.equals( object2 )
Parameters
object1
|
the object to compare.
|
object2
|
the object to compare to.
|
Returns
boolean
|
true if object1 is the same object as object2.
false if object1 is not the same object as object2.
|
Example
if obj1.equals( obj2 ) then
print( "both objects are the same" )
end
|