if statement

Patrick Reuter preuter at LABRI.FR
Fri Sep 19 08:58:31 EDT 2008


Hi,

only grads commands are in quotes in grads scripts ... Leave away the quotes.

Regards,
   Patrick


"Angel Dimitrov" <stormlaboratory at YAHOO.COM> a écrit :

>  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