Special Form Entry: REPEAT
← Prev | ↑ Chapter | Next → | Index | Symbols
Special Form Entry: REPEAT
Name
repeat
Class
Special Form
Syntax
(repeat int [expr ...])
Description
Evaluates body forms a fixed number of times.
Evaluation Rules
- evaluate the repetition count
- if the count permits iteration, evaluate body forms in order for each iteration
Return Values
Returns the final body value or nil if no body exists.
Side Effects
Side effects are those of:
- evaluation of the repetition count,
- repeated evaluation of the body forms.
Exceptional Situations
Erroneous if the repetition count is not acceptable to the active host semantics.
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
- [repeat (AutoLISP)](https://help.autodesk.com/cloudhelp/2018/ENU/AutoCAD-AutoLISP-Reference/files/GUID-413F72B4-BA37-4E5E-9D51-A0091130A317.htm)
- Status: documented in core behavior; concise here.