IS.A
Syntax IS.A object type
 
Explanation IS.A checks a Logo name for being an object of a certain type. Since a Logo name may be a bitmap, a button, a turtle, or any of the other built-in object types, its properties vary from type to type. If the object given as the first input of IS.A matches the type given as the second input of IS.A, IS.A returns TRUE; otherwise IS.A returns FALSE.

IS.A is handy for checking whether a Logo name has a certain built-in property.

A Logo name may have more than one type. The Listener window is, for example, a WINDOW as well as a LISTENER.

See also CHECKTYPE.

Examples IS.A 0 "TURTLE
Result: TRUE
IS.A "LISTENER "WINDOW
Result: TRUE
IS.A "LISTENER "LISTENER
Result: TRUE
IS.A "LISTENER "BUTTON
Result: FALSE

TopIndex