Re: Help needed for a CASE statement, something subtle going on ... [message #87782 is a reply to message #87780] |
Wed, 26 February 2014 16:23   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Phillip Bitzer writes:
> Then don't listen to this :-)
>
> If you absolutely *must* you can do this in a script. Here's the 1970's syntax (it's not pretty and *very* cumbersome)
>
> CASE x OF & $
> 1: print, 'one' & $
> 2: print, 'two' & $
> 3: print, 'three' & $
> 4: print, 'four' & $
> ELSE: print, 'not one through four' & $
> ENDCASE
>
> Again, this should be a last resort.
I used to be one of thorough people, too. But, over the years, I've
learned to give people just enough information to move one step forward.
That's about all they can handle and stay productive. ;-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|