Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

If's & cases.


bintin
 Share

Recommended Posts

This site explains it pretty thoroughly: [http://stackoverflow…else-and-switch](http://stackoverflow.com/questions/680656/what-is-the-difference-between-if-else-and-switch)

Summation: Use a Switch if you're using primitive data types and simple condition expressions (e.g., does this constant match this value?). Use If/Else if you need to use complex condition expressions with user-defined types.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...