<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-02-02 8:22 GMT+01:00 Maciej Izak <span dir="ltr"><<a href="mailto:hnb.code@gmail.com" target="_blank">hnb.code@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">2016-02-01 10:59 GMT+01:00 Michael Schnell <span dir="ltr"><<a href="mailto:mschnell@lumino.de" target="_blank">mschnell@lumino.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On 02/01/2016 09:35 AM, David Butler wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<br>
Maybe call it "inlineif" or "iif", e..g<br>
<br>
x := iif (a < 3, 1, 2)<br>
<br>
</blockquote></span>
It's iif in Oxygen. So why not keep that name ?</blockquote><div><br></div></span><div>Same here. I see no reason to differ from it. Introducing new incompatibility is bad idea. For me is good to have booth (Oxygene compatible):</div><div><br></div><div>x := iif (a < 3, 1, 2);<br></div><div><span style="color:rgb(80,0,80);font-size:12.8px">V := If </span>a < 3<span style="color:rgb(80,0,80);font-size:12.8px"> then 1 else 2;</span><br></div><div><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div><div><font color="#500050"><span style="font-size:12.8px">sometimes is better to use first option and sometimes is better to use second option. Both Oxygen compatible and very "pascalish".</span></font></div></div></div></div></blockquote></div><div class="gmail_extra"><br></div>we can even mix to gain more clear code:</div><div class="gmail_extra"><br></div><div class="gmail_extra">foo := </div><div class="gmail_extra">  if <span style="color:rgb(80,0,80);font-size:12.8px">Condition1</span> then </div><div class="gmail_extra">    iif(<span style="color:rgb(80,0,80);font-size:12.8px">Condition2</span>, <span style="color:rgb(80,0,80);font-size:12.8px">ThenExpr1, </span><span style="color:rgb(80,0,80);font-size:12.8px">ElseExpr1</span>) </div><div class="gmail_extra">  else</div><div class="gmail_extra">    iif(<span style="color:rgb(80,0,80);font-size:12.8px">Condition3</span>, <span style="color:rgb(80,0,80);font-size:12.8px">ThenExpr2</span>, <span style="color:rgb(80,0,80);font-size:12.8px">ElseExpr2</span>);</div><div class="gmail_extra"><br></div><div class="gmail_extra">much more readable than:</div><div class="gmail_extra"><br></div><div class="gmail_extra">if Condition1 then</div><div class="gmail_extra">begin</div><div class="gmail_extra">  if Condition2 then</div><div class="gmail_extra">    foo := <span style="color:rgb(80,0,80);font-size:12.8px">ThenExpr1</span></div><div class="gmail_extra"><span style="color:rgb(80,0,80);font-size:12.8px">  else</span></div><div class="gmail_extra"><span style="color:rgb(80,0,80);font-size:12.8px">    foo := </span><span style="color:rgb(80,0,80);font-size:12.8px">ElseExpr1</span></div><div class="gmail_extra">end else</div><div class="gmail_extra">begin</div><div class="gmail_extra"><div class="gmail_extra">  if Condition3 then</div><div class="gmail_extra">    foo := <span style="color:rgb(80,0,80);font-size:12.8px">ThenExpr2</span></div><div class="gmail_extra"><span style="color:rgb(80,0,80);font-size:12.8px">  else</span></div><div class="gmail_extra"><span style="color:rgb(80,0,80);font-size:12.8px">    foo := </span><span style="color:rgb(80,0,80);font-size:12.8px">ElseExpr2</span></div></div><div class="gmail_extra">end;</div><div class="gmail_extra">  </div><div class="gmail_extra"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards,<br>Maciej Izak</div></div></div>
</div></div>