if statement

Angel Dimitrov stormlaboratory at YAHOO.COM
Fri Sep 19 09:16:02 EDT 2008


Thank you Patrick.

 Angel Dimitrov



----- Original Message ----
From: Patrick Reuter <preuter at LABRI.FR>
To: GRADSUSR at LIST.CINECA.IT
Sent: Friday, September 19, 2008 3:58:31 PM
Subject: Re: if statement

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