<div dir="ltr"><div class="gmail_default" style="font-size:small">Thomas,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Ekin pointed you to the place in the documentation that talks about the lack of an &quot;else if&quot; type of command. It&#39;s mentioned in the third paragraph.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can mimic it somewhat, by putting the &quot;else&quot; and the &quot;if&quot; on the same line, but the caveat is that you need and &quot;end if&quot; for every &quot;else if&quot; that you introduce:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333330154419px;line-height:16px;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)">   if (<i style="margin:0px;padding:0px">scalar_logical_expression</i>) then
       <i style="margin:0px;padding:0px">statement list</i>
   else if (<i style="margin:0px;padding:0px">scalar_logical_expression</i>) then
       statement list
   else if (<i style="margin:0px;padding:0px">scalar_logical_expression</i>) then
       <i style="margin:0px;padding:0px">statement list</i>
   else
       <i style="margin:0px;padding:0px">statement list</i>
   end if
   end if
   end if</pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333330154419px;line-height:16px;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">We do not have immediate plans to add a formal &quot;elif&quot; type statement, but we do have a ticket for it. The developers have told me this is not a trivial request.</font></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333330154419px;line-height:16px;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">--Mary</font></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333330154419px;line-height:16px;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333330154419px;line-height:16px;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent;color:rgb(0,0,0)"><br></pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 23, 2015 at 7:33 AM, Thomas Tobian <span dir="ltr">&lt;<a href="mailto:thomastobian@gmail.com" target="_blank">thomastobian@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I meant elif instead of else if... anyhow, they are doing the same thing.<br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 23, 2015 at 3:30 PM, Ekin Akoglu <span dir="ltr">&lt;<a href="mailto:ekin@ims.metu.edu.tr" target="_blank">ekin@ims.metu.edu.tr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Please see <a href="https://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml</a><br><br></div>Best,<br><br></div>Ekin<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On 23 February 2015 at 15:26, Thomas Tobian <span dir="ltr">&lt;<a href="mailto:thomastobian@gmail.com" target="_blank">thomastobian@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div>Hi NCL,<br><br></div>is &quot;elif&quot; statement valid in NCL?<span><font color="#888888"><br><br></font></span></div></div><span><font color="#888888">Thomas Tobian<br></font></span></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>