Is Operator

Compares the type of an object to an interface, or compares two object references.

Syntax

#object Is { #object_2 | interface_name | Object }

Parts

#object
An expression that evaluates to an object reference.
#object_2
An expression that evaluates to an object reference. Is returns true if the two references are the same object.
interface_name
The name of a class or trait. Is returns true if the object has the interface of that type.
Object
Is returns true if #object is not #Null.

Instructions

TODO2

Examples

' Assume that EditMenu is derived from Menu
EditMenu #edit, "&Edit"

' Test if #edit is a Menu
If #edit Is Menu Then
    ' do something with #edit
End If