Home > lang > is 
 en fr de es it nl pl pt pt_BR mk sq ca cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
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.

Example

PRINT ["Gambas", "rules!"] IS String[]

True

DIM myTextBox AS NEW TextBox(ME)

PRINT myTextBox IS Control

True

PRINT ["Gambas", "rules!"] IS Collection

False

PRINT ["Gambas", "rules!"] Not Is Collection

True

See also

Object & Class Management