Function Entry: TYPE
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: TYPE
Name
type
Class
Function
Syntax
(type item)
Arguments and Values
item: any value
Description
Returns a symbol describing the runtime type category of item, or nil for items that evaluate to nil.
Return Values
Documented return values include symbols such as:
INTREALSTRLISTSYMFILEENAMEPICKSETSUBRUSUBRSAFEARRAYVARIANTVLA-object
and nil for values that evaluate to nil.
Side Effects
None.
Exceptional Situations
No special exceptional situations are documented.
Examples
(type 1) => INT(type "x") => STR(type nil) => nil
Compatibility
This function is one of the strongest direct sources for the practical runtime type model of AutoLISP.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [type (AutoLISP)](https://help.autodesk.com/cloudhelp/2026/PLK/AutoCAD-LT-AutoLISP-Reference/files/GUID-506C9CC8-B0BD-4A4C-B4C2-006750504509.htm)
- Status: documented.