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:

  • INT
  • REAL
  • STR
  • LIST
  • SYM
  • FILE
  • ENAME
  • PICKSET
  • SUBR
  • USUBR
  • SAFEARRAY
  • VARIANT
  • VLA-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.