All,<br><br>I&#39;m working on a GrADS script in which I will pass a forecast hour as an argument. I have a small section of the script that I would only like to execute when I pass forecast hours 12,24,or 36. So far I&#39;ve constructed the statement to read as follows:
<br><br>if (subwrd(hh,1)=&#39;12&#39;)<br>blah blah blah<br>endif<br><br>This is all fine and good, but I&#39;d like to re-use this same section of code when I pass 24 or 36 as an argument. I was wondering if the if/or functionality existed in GrADS?&nbsp; I was thinking something along the lines of
<br><br>if (subwrd(hh,1)=&#39;12&#39;) || if (subwrd(hh,1)=&#39;24&#39;) || if (subwrd(hh,1)=&#39;36&#39;)<br><br>but that didn&#39;t work. I really don&#39;t want to copy and paste the code elsewhere in the script as it&#39;s a pretty lengthy section.
<br><br>Is there any way I can accomplish this?<br><br>Thanks!<br>Dan<br>