Re: If statements inside switch statements?

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

No, because your working around something that doesn't need worked around. send 
the code your trying to compile?
                Thanks,
Tyler Littlefield
        http://tds-solutions.net
        Twitter: sorressean

On Jul 26, 2010, at 10:19 AM, Jes wrote:

> Sorry, let me clarify. The reason I use switch is because I can't get else 
> statements to work inside your regular if then statements.
> if (some condition happens)
> {
> Do this
> }
> else
> {
> do this other thing
> } //end if
> I can't get the else, portion of my code to compile.
> That's why I use switch.
> So, if I needed to put an if, then, statement inside of switch, is that good 
> programming practice?
> Thanks
> 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: