<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 1, 2016 at 2:41 PM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> 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"><span>On Mon, 1 Feb 2016, Maciej Izak 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">2016-02-01 18:08 GMT+01:00 Jürgen Hestermann <<a href="mailto:juergen.hestermann@gmx.de" target="_blank">juergen.hestermann@gmx.de</a>>:<br>
<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">
>From the above I would vote for "InlineIf" or eve better "IfThenElse".<br>
<br>
</blockquote>
<br>
InlineIf sounds better than IIF. Very suggestive and correct. IfThenElse<br>
looks more like "Immediate IF" (or IfThen) functionality.<br>
</blockquote>
<br></span>
InlineIf is fine with me.<br>
<br>
As long as it doesn't require & or some other special constructs.</blockquote></div><div><br></div><div>It would be nice if the programmer could choose it from some compiler switch, something like:</div><div><br></div><div>{$define ifthendecl := InlineIf}</div><div><br></div><div>or:</div><div><br></div><div>{$define ifthendecl := iif} // my favourite :3<br></div><div><br></div><div>or:</div><div><br></div><div>{$define ifthendecl := &if}<br></div><div><br></div><div>And the default could be IfThen.</div><div><br></div><div>Another nice feature sould be:</div><div><br></div><div>Ifso().</div><div><br></div><div>S := Ifso(True, 'SomeValue'); // S = 'SomeValue'</div><div><br></div><div>S := Ifso(False, 'SomeValue'); // S = ''<br></div><div><br></div><div>Just an idea. :-D</div><div><br></div>-- <br><div><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>