

else                        C Keyword                        else




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 intro-
duced by the else statement are executed.  For example,


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


exits if the user types EEOOFF, but does something if the user types
anything else.

***** See Also *****

C keywords, if




































COHERENT Lexicon                                           Page 1


