all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.