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: Emanuel Berg
Subject: Re: Executing part of the code instead of another
Date: Wed, 07 Oct 2020 11:46:02 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Gregory Heytings via Users list for the GNU Emacs text editor wrote:

> In general you can do:
>
> (if [condition]
>   (progn
>     [multiple statements of the "then" part])
>  [multiple statements of the "else" part"])

And the value returned, if condition, is the one of
the last one in the "then" or progn part - the
nth one!

There is also a `prog1'!

But no prog2 :(

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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