if/endif use with defined variables
Arlindo da Silva
arlindo.dasilva at GMAIL.COM
Mon Apr 5 21:26:59 EDT 2010
On Fri, Apr 2, 2010 at 8:29 AM, Davide Sacchetti <davide.sacchetti at arpal.org
> wrote:
> operators like '>' work for just numbers, not for fields ...
> I mean: 5>4 is correct, while vmerId >= 5.0 (pay attention to the
> missing 'I' in your script) is not correct: if you want to compare
> fields to numbers use maskout function.
>
>
There is a if() function in the opengrads extensions that allow you to write
an if conditional for fields. Take a look at:
http://opengrads.org/doc/udxt/libbjt/
Sure, you can accomplish the same with the maskout function but the if()
function is somewhat easier to read.
Arlindo
--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100405/19935e30/attachment.html
More information about the gradsusr
mailing list