if statement - syntax error
Posted: Fri Mar 27, 2009 1:41 pm
Any idea why I get a syntax error here?
As far as I can tell this looks exactly like what is on page 611 of User's Guide I.
in the command line, I enter: run myprog xyz
where myprog.prg is the following
----------------------------
if %0 = "xyz"
!j =5
else
!j=10
endif
----------------------------
and this produces the error message: Syntax error in "IF %0="XYZ""
-cap
As far as I can tell this looks exactly like what is on page 611 of User's Guide I.
in the command line, I enter: run myprog xyz
where myprog.prg is the following
----------------------------
if %0 = "xyz"
!j =5
else
!j=10
endif
----------------------------
and this produces the error message: Syntax error in "IF %0="XYZ""
-cap