Function: cond-let--and$

cond-let--and$ is a macro defined in cond-let.el.

Signature

(cond-let--and$ VARFORM BODYFORM)

Documentation

Bind variable $ to value of VARFORM and conditionally evaluate BODYFORM.

If VARFORM yields a non-nil value, bind the symbol $ to that value, evaluate BODYFORM with that binding in effect, and return the value of BODYFORM. If VARFORM yields nil, do not evaluate BODYFORM, and return nil.

Source Code

;; Defined in ~/.emacs.d/elpa/cond-let-20260201.1500/cond-let.el
(defmacro cond-let--and$ (varform bodyform)
  "Bind variable `$' to value of VARFORM and conditionally evaluate BODYFORM.

If VARFORM yields a non-nil value, bind the symbol `$' to that value,
evaluate BODYFORM with that binding in effect, and return the value of
BODYFORM.  If VARFORM yields nil, do not evaluate BODYFORM, and return
nil."
  (declare (debug (form form)))
  `(let (($ ,varform))
     (and $ ,bodyform)))