Function: when-let*

when-let* is a macro defined in subr.el.gz.

Signature

(when-let* VARLIST &rest BODY)

Documentation

Bind variables according to VARLIST and conditionally evaluate BODY.

Evaluate each binding in turn, stopping if a binding value is nil. If all are non-nil, return the value of the last form in BODY.

The variable list VARLIST is the same as in if-let*.

See also and-let*.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defmacro when-let* (varlist &rest body)
  "Bind variables according to VARLIST and conditionally evaluate BODY.
Evaluate each binding in turn, stopping if a binding value is nil.
If all are non-nil, return the value of the last form in BODY.

The variable list VARLIST is the same as in `if-let*'.

See also `and-let*'."
  (declare (indent 1) (debug if-let*))
  (list 'if-let* varlist (macroexp-progn body)))