Is (operator)
result = object1 IS object2
Description
IS returns a boolean specifying if one object reference is identical to another. The required components, object1 and object2 are two object references.
Example
REM IS Example
DIM Obj1,Obj2
Obj1 = Array("Lovelace","Hopper","Allen")
SET Obj2 = Obj1
CompareObjects Obj1, Obj2
SET Obj2 = NOTHING
CompareObjects Obj1, Obj2
missing=6
notmissing=7
CompareObjects missing, notmissing
SUB CompareObjects(Ob1, Ob2)
IF Ob1 IS Ob2 THEN
PRINT "Same"
ELSE
PRINT "Different"
END IF
END SUB
Output
Same Different
Related Items