Search code examples
cconditional-statementscontrol-flow

What are the differences between if-else and else-if?


I am trying to discern the difference between:

if 
else

and

else if 

How do you use these? And when do you use them and when not?


Solution

  • **IF** you are confused
     read the c# spec
    **ELSE IF** you are kind of confused
     read some books
    **ELSE**
     everything should be OK.
    

    :)