<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> </head>I might be missing something but it doesn't look like j will ever be anything other than 1. Is that what you are intending to do? <p>Sent from my Verizon Wireless BlackBerry</p><hr/><div><b>From: </b> Eduardo Agosta Scarel <eduardo.agosta@GMAIL.COM>
</div><div><b>Date: </b>Fri, 2 Apr 2010 08:50:23 -0300</div><div><b>To: </b><GRADSUSR@LIST.CINECA.IT></div><div><b>Subject: </b>if/endif use with defined variables</div><div><br/></div>Hi you all!<div><br></div><div>I am trying to use the values obtained for a defined variable within an if/endif construction, but it appears that the script does not read in fact every value (which must be compared with a certain threshold).</div>
<div><br></div><div>Any suggestion for that?</div><div><br></div><div>I will much appreciate.</div><div><br></div><div>Eduardo.</div><div><br></div><div><br></div><div>PS: E.g. of what I want to do: to count the numbers of days when the defined variable is below or over a threshold:</div>
<div><br></div><div>j=1</div><div>i=0</div><div>while (j < 31)</div><div>'set t 27'</div><div>'set lat 0'</div><div>'set lon 0 360'</div><div>'define vmerid=ave(vwnd(t='j'), lat=0, lat=10)'</div>
<div>v='vmerid'</div><div>if (vmerd >= 5.0 & vmerid <= 5.0)</div><div> i=i+1</div><div>endif</div><div>enwhile</div><div><br></div><div><br clear="all"><br>-- <br><br><a href="mailto:eduardo.agosta@conicet.gov.ar">eduardo.agosta@conicet.gov.ar</a><br>
<a href="mailto:eduardo_agosta@uca.edu.ar">eduardo_agosta@uca.edu.ar</a><br>
</div>
</html>