<p>Am 01.02.2016 19:24 schrieb "silvioprog" <<a href="mailto:silvioprog@gmail.com">silvioprog@gmail.com</a>>:<br>
><br>
> On Mon, Feb 1, 2016 at 2:41 PM, Michael Van Canneyt <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>> wrote:<br>
>><br>
>> On Mon, 1 Feb 2016, Maciej Izak wrote:<br>
>>><br>
>>> 2016-02-01 18:08 GMT+01:00 Jürgen Hestermann <<a href="mailto:juergen.hestermann@gmx.de">juergen.hestermann@gmx.de</a>>:<br>
>>><br>
>>>> From the above I would vote for "InlineIf" or eve better "IfThenElse".<br>
>>>><br>
>>><br>
>>> InlineIf sounds better than IIF. Very suggestive and correct. IfThenElse<br>
>>> looks more like "Immediate IF" (or IfThen) functionality.<br>
>><br>
>><br>
>> InlineIf is fine with me.<br>
>><br>
>> As long as it doesn't require & or some other special constructs.<br>
><br>
><br>
> It would be nice if the programmer could choose it from some compiler switch, something like:<br>
><br>
> {$define ifthendecl := InlineIf}<br>
><br>
> or:<br>
><br>
> {$define ifthendecl := iif} // my favourite :3<br>
><br>
> or:<br>
><br>
> {$define ifthendecl := &if}<br>
><br>
> And the default could be IfThen.<br>
><br>
> Another nice feature sould be:<br>
><br>
> Ifso().<br>
><br>
> S := Ifso(True, 'SomeValue'); // S = 'SomeValue'<br>
><br>
> S := Ifso(False, 'SomeValue'); // S = ''<br>
><br>
> Just an idea. :-D</p>
<p>Don't complicate a simple feature like this even more -.-</p>
<p>Regards,<br>
Sven</p>