From: "Rudolf Adamkovič" <salutis@me.com>
To: Heime <heimeborgia@protonmail.com>,
Heime via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Re: cond construct for situation when a variable is t
Date: Sun, 20 Aug 2023 00:43:03 +0200 [thread overview]
Message-ID: <m2msymu008.fsf@me.com> (raw)
In-Reply-To: <Qr7hyMFdDnjML6CypS2UfLJB-ym4ochp3zRSpNH4NKkWrt931xSXHdAPmCV9AR_C1MnFZD_ul2yV2We0CoxOU7JFuZXoERA6cFVcyv0KE5Q=@protonmail.com>
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
prev parent reply other threads:[~2023-08-19 22:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-18 14:00 cond construct for situation when a variable is t Heime
2023-08-19 22:04 ` Emanuel Berg
2023-08-22 12:18 ` Heime
2023-08-22 16:10 ` [External] : " Drew Adams
2023-08-22 19:31 ` Emanuel Berg
2023-08-23 19:49 ` Drew Adams
2023-08-22 19:29 ` Emanuel Berg
2023-08-22 12:32 ` Heime
2023-08-22 16:17 ` [External] : " Drew Adams
2023-08-22 20:21 ` Heime
2023-08-22 21:07 ` Drew Adams
2023-08-19 22:43 ` Rudolf Adamkovič [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2msymu008.fsf@me.com \
--to=salutis@me.com \
--cc=heimeborgia@protonmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.