Re: If statements inside switch statements?

  • From: Tyler Littlefield <tyler@xxxxxxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Mon, 26 Jul 2010 10:00:51 -0600

What do you mean? else on switch looks like:
switch (i)
{
case 1:
case 2:
//tests for boty 1 and 2
//do something here
case 3:
//do something else here
default:
//else
}

                Thanks,
Tyler Littlefield
        http://tds-solutions.net
        Twitter: sorressean

On Jul 26, 2010, at 9:35 AM, Jes wrote:

> Hi all,
> 
> Is it efficient on the computer's resources if I place an if statement inside 
> a switch statement?
> The reason I ask is because for whatever reason, I can't get my else clause 
> to work. Switch, on the other hand, works just fine.
> Jes
> 
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
> 

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: