Hello,<br><div><div class="im"><br> I want to calculate variable 2 based on the value of some variable as follows. <br><div><br>When var1 = 100, then var2 = (calculation 1)<br>When var1 != 100, then var2 = (calculation 2)<br>
<br></div>I wrote a .gs script as follows. But the condition rh=100 did not effect. Could anyone reveal what would
be the right command in .gs script to give the condition in which variables are in the
.ctl file? <br><br></div>"malr=dalr*(1+2500000*q/287/tk)/(1+0.622*pow(2500000,2)*q/1004/287/tk/tk)"<div class="im"><div><div>"elr=-(tk(z+1)-tk(z-1))/(height(z+1)-height(z-1))"<br>
<br>if (rh=100) then<br> "mai=elr-malr"<br>
else<br>
"mai=0"<br>endif<br>"set gxout shaded"<br>"set cint 1"<br>"d mai"<br><br> Thanks much for your help,<br><font color="#888888"><br> Yi-Chih</font></div>
</div></div></div>