<p>Am 01.02.2016 09:35 schrieb "David Butler" <<a href="mailto:djbutler@gmail.com">djbutler@gmail.com</a>>:<br>
><br>
> This is usually called "inline if".<br>
><br>
> Maybe call it "inlineif" or "iif", e..g<br>
><br>
> x := iif (a < 3, 1, 2)<br>
><br>
> or even<br>
><br>
> x := iif a < 3 then 1 else 2;</p>
<p>I personally would have preferred "if a < 3 then 1 else 2", but a discussion on fpc-devel a dew months ago has shown that there are quite some against it... I myself am against a c-like operator like ?: and thus the intrinsic came as a compromise.</p>
<p>Regards,<br>
Sven</p>