COHERENT manpages

This page displays the COHERENT manpage for else [Introduce a conditional statement].

List of available manpages
Index


else -- C Keyword

Introduce a conditional statement

else is the flip side of an if statement: if the condition described in the
if statement  fails, then the  statements introduced by  the else statement
are executed.  For example,

    if (getchar() == EOF)
        exit(0);
    else
        dosomething();

exits if the user types EOF,  but does something if the user types anything
else.

See Also

C keywords,
if
ANSI Standard, §6.6.4.1