<div dir="ltr"><div dir="ltr">Marian,<div>You are correct, regarding the "if" function in your version of OpenGrADS.  The syntax I provided was for the latest (2.2.1) version.  In the latest OpenGrADS version, you can either use "if" with the syntax as I provided, or use "if_" with the syntax you provided.  Either way, you're good to go!</div><div><br></div><div>Best wishes--</div><div>Stephen</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 14, 2019 at 10:53 PM AMS EmsiWx Bytča <<a href="mailto:emsiwx@pocasie-bytca.sk">emsiwx@pocasie-bytca.sk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Once again thank you both guys, gave up const/maskout after
      sveral hours combining :D , used IF (did not know that it is
      already in 2.1.x version which I have), the correct syntax is:<br>
    </p>
    <p><br>
    </p>
    <p>'define A=if(tempdif,>,25,0,if(tempdif,>=,22,2,6))'</p>
    <p><br>
    </p>
    <p>Marian</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <div class="gmail-m_1754790531933285173moz-cite-prefix">Dňa 14. 3. 2019 o 20:04 AMS EmsiWx
      Bytča napísal(a):<br>
    </div>
    <blockquote type="cite">
      
      <p>Thank you Jeff and Stephen, will try to play with const/maskout
        first, then I will reinstall my Opengrads and try the if
        statement.</p>
      <p><br>
      </p>
      <p>Marian<br>
      </p>
      <div class="gmail-m_1754790531933285173moz-cite-prefix">Dňa 14. 3. 2019 o 15:09 Stephen
        McMillan napísal(a):<br>
      </div>
      <blockquote type="cite">
        
        <div dir="ltr">Marian,
          <div><br>
          </div>
          <div>One correction to what I sent...</div>
          <div><br>
          </div>
          <div>'define A=if(dt>25,0,if(dt>=22,2,6))'     added the
            second )</div>
          <div><br>
          </div>
          <div>Stephen</div>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Thu, Mar 14, 2019 at
            10:06 AM Stephen McMillan <<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div dir="ltr">Marian,
              <div><br>
              </div>
              <div>If you have the latest version of GrADS or OpenGrADS,
                you could do something like this:</div>
              <div><br>
              </div>
              <div>'define dt=t850-t500'</div>
              <div>'define A=if(dt>25,0,if(dt>=22,2,6)'</div>
              <div>'d A'</div>
              <div><br>
              </div>
              <div>Stephen McMillan</div>
            </div>
            <br>
            <div class="gmail_quote">
              <div dir="ltr" class="gmail_attr">On Wed, Mar 13, 2019 at
                4:14 PM AMS EmsiWx Bytča <<a href="mailto:emsiwx@pocasie-bytca.sk" target="_blank">emsiwx@pocasie-bytca.sk</a>>
                wrote:<br>
              </div>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear all,<br>
                <br>
                <br>
                I am going crazy combining const/maskout to get what I
                need.<br>
                <br>
                I need to set A according the following:<br>
                <br>
                A= 0 when T850-T500 >25<br>
                <br>
                A= 2 when T850-T500 22-25<br>
                <br>
                A= 6 when T850-T500 <22<br>
                <br>
                <br>
                Would like to ask any master of const/maskout for help.<br>
                <br>
                <br>
                Thank you very much in advance.<br>
                <br>
                <br>
                Marian<br>
                <br>
                _______________________________________________<br>
                gradsusr mailing list<br>
                <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
                <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
              </blockquote>
            </div>
          </blockquote>
        </div>
        <br>
        <pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">***************************************************</pre>
        <pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">The information contained in this e-mail message </pre>
        <pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">is intended only for the use of the recipient(s) </pre>
        <pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">named above and may contain information that is </pre>
        <pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">privileged, confidential, and/or proprietary. </pre>
        <pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">If you are not the intended recipient, you may not</pre>
        <pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">review, copy or distribute this message. If you have</pre>
        <pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">received this communication in error, please notify </pre>
        <pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">the sender immediately by e-mail, and delete the original message.</pre>
        <pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">***************************************************</pre>
        <br>
        <fieldset class="gmail-m_1754790531933285173mimeAttachmentHeader"></fieldset>
        <pre class="gmail-m_1754790531933285173moz-quote-pre">_______________________________________________
gradsusr mailing list
<a class="gmail-m_1754790531933285173moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a class="gmail-m_1754790531933285173moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="gmail-m_1754790531933285173mimeAttachmentHeader"></fieldset>
      <pre class="gmail-m_1754790531933285173moz-quote-pre">_______________________________________________
gradsusr mailing list
<a class="gmail-m_1754790531933285173moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a class="gmail-m_1754790531933285173moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
  </div>

_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div></div>

<br>
<pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">******************************<wbr>*********************</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">The information contained in this e-mail message </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">is intended only for the use of the recipient(s) </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">named above and may contain information that is </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">privileged, confidential, and/or proprietary. </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">If you are not the intended recipient, you may not</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">review, copy or distribute this message. If you have</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">received this communication in error, please notify </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">the sender immediately by e-mail, and delete the original message.</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">******************************<wbr>*********************</pre>