Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see How to Migrate to InterSystems IRIS, available on the WRC Distributions page (login required).

Is Operator

Used to compare two object reference variables.

Synopsis

result = object1 Is object2

Arguments

The Is operator syntax has these parts:

result Any numeric variable.
object1 Any object name.
object2 Any object name.

Description

If object1 and object2 both refer to the same object, result is True; if they do not, result is False. Two variables can be made to refer to the same object in several ways:

In the following example, A has been set to refer to the same object as B:

Set A = B

The following example makes A and B refer to the same object as C:

Set A = C
Set B = C

See Also

Feedback