HollerTrain HollerTrain - 1 year ago 85
C Question

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

I am trying to discern the difference between

else if

When do you use them and when not?

I have a homework assignment with a ton of instances and I am running into code error due to not knowing the differences between each.

Can someone please define how to use these?

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


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download