Re: block if [message #14630] |
Thu, 18 March 1999 00:00 |
rmlongfield
Messages: 68 Registered: August 1998
|
Member |
|
|
In article <36EEE503.9B8202AD@essex.ac.uk>,
Philip Mason <pmason@essex.ac.uk> wrote:
> Does anyone know if there is something inherently wrong with unix
> PV-wave
> version (6.01) with respect to 'block if constructs'. Each time I type
> in:
>
> IF I=0,N DO BEGIN
> ..........
> ENDFOR
>
> (as prescribed by the manual) it gives a 'syntax error' with regards the
>
> 'endfor' statement. Is it just a bug or am I just stupid ?#.
>
Hi Philip,
Is the above exactly what you have written? If so, there is a mixup
in the type of block. The IF should be a FOR, for a loop. If you are
writing an IF block, then the Do should be a THEN and the ENDFOR should be an
ENDIF, and there should be some conditional statement, not I=0,N. I use IDL
but am pretty sure that the formats of the blocks are the same.
Rose
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
|
|
|