<div dir="auto"><div><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Ondrej Pokorny via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Do., 21. Aug. 2025, 23:49:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 01.02.2016 21:14, Sven Barth wrote:<br>
> Hello together!<br>
><br>
> Time for the next flame. I've attached a patch which implements an "if<br>
> Condition then ThenExpr else ElseExpr"-expression for those that want to<br>
> play around with it. It follows the same principles as the<br>
> yet-to-be-renamed IfThen() (namely that the type is determined by the<br>
> ThenExpr) as it's just a different syntax with the same (copy & pasted)<br>
> code behind it...<br>
><br>
> Note: this patch *might* also work with 3.0.0 or even 2.6.4...<br>
><br>
> Regards,<br>
> Sven<br>
<br>
You were almost 10 years ahead :)<br>
<br>
<a href="https://blogs.embarcadero.com/coming-in-rad-studio-13-a-conditional-ternary-operator-for-the-delphi-language/" rel="noreferrer noreferrer" target="_blank">https://blogs.embarcadero.com/coming-in-rad-studio-13-a-conditional-ternary-operator-for-the-delphi-language/</a></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Oxygene already had it for longer which is where I had the idea from ðŸ˜…</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>