[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cond construct for situation when a variable is t
From: |
Rudolf Adamkovič |
Subject: |
Re: cond construct for situation when a variable is t |
Date: |
Sun, 20 Aug 2023 00:43:03 +0200 |
Heime <heimeborgia@protonmail.com> writes:
> How can I use the 'cond' construct for the
> case when a variable is 't' ?
(cond ((equal some-variable t)
(message "true")))
For more information, see 'C-h f cond RET'.
> I can set a variable to boolean true using
> (setq var t), am I right ?
Correct.
Rudy
--
"'Obvious' is all too often a synonym for 'wrong'."
-- Jeff Erickson, Algorithms, 2019
Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia