<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear GrADS people,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would like to write a while loop and every
time when passing the loop remember the value of a variable for
manipulation after the loop.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Something like:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>count=1</FONT></DIV>
<DIV><FONT face=Arial size=2>while ( count <= 10
)</FONT> </DIV>
<DIV><FONT face=Arial size=2>'d pslv/100'<BR> 'q
pos'<BR> a=subwrd(result,3)</FONT></DIV>
<DIV><FONT face=Arial size=2>count=count+1</FONT></DIV>
<DIV><FONT face=Arial size=2>endwhile</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>where I would like to have values of a(1),
a(2)...a(10) after in the script.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would appreciate any suggestions,</FONT></DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Kristian</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>_________________________________________</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Kristian Horvath<BR>research fellow<BR>Croatian
Meteorological and Hydrological Service</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>