if statement

Angel Dimitrov stormlaboratory at YAHOO.COM
Fri Sep 19 08:53:27 EDT 2008


 Hello,

 GrADS returns "unknown command: if" when I write the next script in my file.gs:

'if (i<0) ; i=0 ; endif'

 What is the error? I looked at the documentation and can't find what is wrong.


 Here is the full error message:
--------------------------------------------------------
GX Package Initialization: Size = 11 8.5
Running in Batch mode
Most GrADS attributes have been reset
Unknown command: if
Syntax Error:  Expected operand or '('
  Error ocurred at column 20
DEFINE error:  Invalid expression.
Segmentation fault
--------------------------------------------------------

 Thank you.

 Cheers,

   Angel Dimitrov



More information about the gradsusr mailing list