DIESEL - String Expression Language

You can use DIESEL (Direct Interpretively Evaluated String Expression Language) to alter the AutoCAD LT status line through the MODEMACRO system variable. You can also use DIESEL in menu items as a macro language. DIESEL expressions take strings as input and generate string results.

Status Line Configuration - MODEMACRO
Using the MODEMACRO System Variable
DIESEL Expressions in Menus
Catalog of DIESEL String Functions
DIESEL Error Messages