unless is the negated counterpart to when.
Syntax
(unless ⟨test⟩
⟨expr⟩...)
Semantics
unlessis a convenience form for one-sided conditional code for effect.- Expressions in the body are sequenced as an implicit
progn, and the result must unify toVoid. - Use
whenfor the negated form.
Example
(unless ready?
(error "Not ready"))