good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
(tye)Re: (Ovid - Why I love nested If-Else blocks)by tye (Sage) |
on Jan 07, 2002 at 21:10 UTC ( [id://136855]=note: print w/replies, xml ) | Need Help?? |
I don't see anything that improved on the nested if/else blocks so far. You have 6 cases so you are going to end up with six cases. You could factor out the common code like so: but that is pretty obfuscated. (: - tye (but my friends call me "Tye")
In Section
Meditations
|
|