Re: If statements inside switch statements?

  • From: Jes <theeternalkid@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Mon, 26 Jul 2010 12:19:33 -0400

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

Other related posts: