Dear Sir/Madam<br> I use if command for calculating but I had a problem as below<br>This is my module:<br><br> function main(args)<br> year=subwrd(args,1)<br> para=1<br> <b><i>if (para = 1)<br>
</i></b> 'sdfopen /home/chinhth/DATA/HINCAST/COLA/z500/COLA/JUN/'year'/<a href="http://z500.nc">z500.nc</a>'<br> 'set t 1'<br> 'set z 1'<br> 'set lat -90 90'<br>
'set lon 0 357.5'<br> 'set gxout print'<br> 'set prnopts %g 1 1'<br> 'd z500'<br> res=result<br> w=write('/home/chinhth/DATA/HINCAST/COLA/z500/COLA/JUN/'year'/'year'.txt',res)<br>
<b><i>endif<br></i></b>But I don't understand one error occur as bellow:<br> <b><i>Unable to locate ENDIF statement for the IF statement at line 8<br> In file <a href="http://convert_txt.gs">convert_txt.gs</a></i></b><br>
Please tell me this problem<br>Thank you <br>Chinh<br clear="all"><br>-- <br><div>(Mr.) Ta Huu Chinh</div><div>National, Weather Forecasting Center, Ha Noi, Viet Nam. </div><div>No: 4th, Dang Thai Than, Hoan Kiem, Ha Noi</div>
<div>Tel: 84-903-402-181</div><div>Fax: 84-43-824-4917</div><div>Email: <a href="mailto:chinhth2010@gmail.com" target="_blank">chinhth2010@gmail.com</a></div><div>Website: <a href="http://vn.myblog.yahoo.com/chinhth2005/" target="_blank">http://vn.myblog.yahoo.com/chinhth2005/</a></div>
<div>Website: <a href="http://bestknowledge-chinhth.blogspot.com/" target="_blank">http://bestknowledge-chinhth.blogspot.com/</a></div><div>Website: <a href="http://anhcuoidep.vn" target="_blank">http://anhcuoidep.vn</a></div>
<br>