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: Emanuel Berg
Subject: Re: Elisp - Determine if variable is nil
Date: Sat, 30 Jan 2021 15:57:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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]