help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Executing part of the code instead of another


From: Gregory Heytings
Subject: Re: Executing part of the code instead of another
Date: Wed, 07 Oct 2020 09:38:03 +0000
User-agent: Alpine 2.22 (NEB 394 2020-01-19)



What can one use if there is an else branch with multiple commands, as I would like to use it.


In general you can do:

(if [condition]
  (progn
    [multiple statements of the "then" part])
 [multiple statements of the "else" part"])



reply via email to

[Prev in Thread] Current Thread [Next in Thread]