All,<br><br>I'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've constructed the statement to read as follows:
<br><br>if (subwrd(hh,1)='12')<br>blah blah blah<br>endif<br><br>This is all fine and good, but I'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? I was thinking something along the lines of
<br><br>if (subwrd(hh,1)='12') || if (subwrd(hh,1)='24') || if (subwrd(hh,1)='36')<br><br>but that didn't work. I really don't want to copy and paste the code elsewhere in the script as it's a pretty lengthy section.
<br><br>Is there any way I can accomplish this?<br><br>Thanks!<br>Dan<br>