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: Robert Pluim
Subject: Re: Executing part of the code instead of another
Date: Wed, 07 Oct 2020 09:20:12 +0200

>>>>> On Wed, 7 Oct 2020 09:01:00 +0200, Christopher Dimech <dimech@gmx.com> 
>>>>> said:

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

>From 'C-h f if'

    if is a special form in `C source code'.

    (if COND THEN ELSE...)

      Probably introduced at or before Emacs version 1.1.

    If COND yields non-nil, do THEN, else do ELSE...
    Returns the value of THEN or the value of the last of the ELSE's.
=>  THEN must be one expression, but ELSE... can be zero or more expressions.
    If COND yields nil, and there are no ELSE's, the value is nil.


Robert
-- 



reply via email to

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