unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Setting value 1 when matching two strings
@ 2022-10-16 15:51 Heime via Users list for the GNU Emacs text editor
  2022-10-16 16:23 ` Dr Rainer Woitok
  0 siblings, 1 reply; 19+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2022-10-16 15:51 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

This code sets "isel" to value "1" if "actm" matches "vert". I want to extend this so that value "1"
is also set when "actm" matches "horz".

(let ( (isel (if (equal "vert" actm) 1 -1)) )

Thus when "actm" matches "vert" or "horz", then "isel" has value "1". Otherwise "isel" has value "-1".

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-10-17  4:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-16 15:51 Setting value 1 when matching two strings Heime via Users list for the GNU Emacs text editor
2022-10-16 16:23 ` Dr Rainer Woitok
2022-10-16 16:33   ` Heime
2022-10-16 20:21   ` Heime
2022-10-16 21:23     ` [External] : " Drew Adams
2022-10-16 22:33       ` Heime
2022-10-16 23:16         ` Michael Heerdegen
2022-10-16 23:21           ` Heime
2022-10-16 23:39             ` Michael Heerdegen
2022-10-17  0:17               ` Heime
2022-10-17  0:41                 ` Drew Adams
2022-10-17  0:57                   ` Michael Heerdegen
2022-10-17  1:06                     ` Drew Adams
2022-10-17  0:42                 ` Michael Heerdegen
2022-10-17  1:40                   ` Christopher Dimech
2022-10-17  1:46                     ` Michael Heerdegen
2022-10-17  2:17                   ` Heime
2022-10-17  0:42         ` Drew Adams
2022-10-17  4:31         ` Jean Louis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).