help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Elisp - Determine if variable is nil


From: jai-bholeki
Subject: Re: Elisp - Determine if variable is nil
Date: Sat, 30 Jan 2021 16:03:11 +0100

When using pcase, do I need parenthesis around
dfv-break-comments-state?

(pcase dfv-break-comments-state

(pcase (dfv-break-comments-state)




> Sent: Sunday, January 31, 2021 at 2:57 AM
> From: "moasenwood--- via Users list for the GNU Emacs text editor" 
> <help-gnu-emacs@gnu.org>
> To: help-gnu-emacs@gnu.org
> Subject: Re: Elisp - Determine if variable is nil
>
> jai-bholeki wrote:
>
> > How can I check if a variable is nil?
>
> (setq some-var nil)
>
> (unless some-var
>   (message "var is nil") )
>
> --
> underground experts united
> http://user.it.uu.se/~embe8573
> https://dataswamp.org/~incal
>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]