Case statement ? - to replace nested ifs ?

Case statement ? - to replace nested ifs ?

Post by bruce.sinc » Fri, 03 Feb 2006 14:53:48



After yet another requirement for nested ifs to do something kind of
simple, it occurs to me that XL could really benefit from something like a
case statement.
That would effectively remove the need for nested ifs and make the selection
process far simpler and easier to read and understand.

What do people think ... and is there any chance that xl could get this
added in the near future ?
Or is there something out there already donig this sort of thing ? :)


Thanks

Bruce

----------------------------------------
I believe you find life such a problem because you think there are the good
people and the bad people. You're wrong, of course. There are, always and
only, the bad people, but some of them are on opposite sides.

Lord Vetinari in Guards ! Guards ! - Terry Pratchett

Caution ===== followups may have been changed to relevant groups
(if there were any)