Where did my variable go? [message #6786] |
Tue, 13 August 1996 00:00 |
gromm
Messages: 11 Registered: July 1996
|
Junior Member |
|
|
This might be one of those cases of disappearing variables, I'm not
sure. However, this is a variable disappearing in a nested FOR loop
rather than a function or procedure. I think it might have to do with
the order of processing FOR loops. Does IDL process the innermost FOR
loop first? I have something like this:
FOR Z=1, WHATEVER DO BEGIN
FOR Y=1, WHATEVER2 DO BEGIN
FOR X=1, WHATEVER3 DO BEGIN
IF Z*SOMETHING LT A(X) THEN THIS ELSE THAT
ENDFOR
ENDFOR
ENDFOR
Then IDL tells me that the Z in the Z*SOMETHING of the X FOR loop is
undefined. I just want it to take the value of the Z at whatever loop
number Z is in. How can I remedy this situation?
-Gadi
|
|
|