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

Home » Public Forums » archive » Re: Starting a for loop within an if loop
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: Starting a for loop within an if loop [message #57626] Thu, 20 December 2007 07:01 Go to previous message
edward.s.meinel@aero. is currently offline  edward.s.meinel@aero.
Messages: 52
Registered: February 2005
Member
On Dec 19, 10:57 pm, Mat Smith <mat.sm...@port.ac.uk> wrote:

> Any thoughts on how I can get around this? It's entirely possible that
> I'm missing something obvious.
> Thanks
> Mat

Thanks a lot, Mat. Now I have a headache.

My take on this is that you are treating IDL like C, C++, FORTRAN (pre-
F90), ... You managed to suck me (and apparently everyone else) into
the same thought pattern with that convoluted little piece of code.
Now that I've cleared my mind, why can't you just do:

CASE mc OF
1: t = d
ELSE: t = s
ENDCASE
... working on t

Ed
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Debugging in IDL 7
Next Topic: Re: IDL 7 on Ubuntu (probably also relevant to Fedora 8)

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

Current Time: Thu Oct 09 20:40:50 PDT 2025

Total time taken to generate the page: 0.96520 seconds