You need to enclose your IF test conditional _expression_ in grave
accents. Conditional IF tests are actually based upon string
values.
- Steve
On 9/29/2010 8:41 AM, K Wheel wrote:
Hello,
I have a problem with my ferret-script. It includes a REPEAT and
IF statement, although I think the fault is in the IF part.
The following code has been set up:
REPEAT/i=1:362 \
( REPEAT/j=1:292 \
( IF SST[X=i, Y=j, L=1] EQ 0 \
THEN \
LET SST[X=i, Y=j, L=1] = 1/0 \
ENDIF \
) \
)
Which gives the following output in:
!-> REPEAT: I=1
!-> REPEAT: J=1
**ERROR: command syntax:
SST[X=i,Y=j,L=1]
IF SST[X=i,Y=j,L=1] EQ 0 THEN LET
SST[X=i,Y=j,L=1] = 1/0 ENDIF
Command file, command group, or REPEAT
execurtion aborted.
Does anyone have an idea why the IF does not recognise
SST[X=1,Y=1,L=1] ?
Thank you!
|