TYPEOF
Syntax TYPEOF name
 
Explanation The TYPEOF command returns the type of the Logo name supplied as input. This is usually one of the values NAME for Logo names, NUMBER for numbers, or BOOLEAN for TRUE or FALSE. It may also be one of the following values:
 
ARRAY a Logo array
BITMAP a bitmap
BUTTON a pushbutton
CHECKBOX a box with a check mark
EDITBOX a box where you can enter text
EDITOR an editor window
GRAPHICS a Graphics window
LISTBOX a list box
LISTENER the Listener window
OUTPUT an output window
POPUP a pop-up list
RADIOBUTTON a radio button
SCROLLBAR a slider
STATICTEXT a box which displays text
TURTLE a turtle
WINDOW all types of windows
WORKSPACE the Logo workspace

See also DECLARE, IS.A, and PPROP.
 

Examples TYPEOF "TURTLE.0
Result: TURTLE
TYPEOF 0
Result: NUMBER
TYPEOF "HELLO
Result: NAME

TopIndex