lang • is

IS

Result = Expression [ NOT ] IS Class

Returns TRUE if an object is an instance of a class, or one of its descendants.

If NOT is specified, the test is inverted.

Examples

Print ["Gambas", "rules!"] Is String[]
True
Dim myTextBox As New TextBox(Me)

Print myTextBox Is Control
True
Print ["Gambas", "rules!"] Is Collection
False

Examples

Print ["Gambas", "rules!"] Not Is Collection
True

See also