comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » re: Bug in SWITCH - ELSE: statement?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
re: Bug in SWITCH - ELSE: statement? [message #56311] Thu, 11 October 2007 08:54 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
> You brought up something interesting (to me anyway.) If you place
> the
> ELSE earlier in the SWITCH statement, then everything below it is
> executed. If you do the same for a CASE statement then only then
> ELSE is executed. It never occurred to me until I saw your post
> that it was possible to place the ELSE anywhere but at the end.

This is useless and can bring serious headaches...

Both the Case and Switch run from the 1st condition to the last one...
so anything you write below the "else" will never (Case) or always
(Switch) be executed... then there is no need for a Case or Switch
anymore! ... just delete (Case) your code or write it outside of the
Switch block!

Jean
[Message index]
 
Read Message
Read Message
Previous Topic: Re: character class conversions
Next Topic: Error in coyote's colorbar

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:17:16 PDT 2025

Total time taken to generate the page: 0.32285 seconds