<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 2, 2016 at 4:07 PM, geneb <span dir="ltr"><<a href="mailto:geneb@deltasoft.com" target="_blank">geneb@deltasoft.com</a>></span> wrote:<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span></span>I probably missed it, but what problem is "IfThen()" actually solving?<span><font color="#888888"><br>
</font></span><br></blockquote></div>It's a sugar syntax, for<br><br></div><div class="gmail_extra">if cond then<br></div><div class="gmail_extra">Â x:= a<br></div><div class="gmail_extra">else<br></div><div class="gmail_extra">Â x:=b;<br><br></div><div class="gmail_extra"></div><div class="gmail_extra">Just follow this thread: <a href="http://lists.freepascal.org/pipermail/fpc-pascal/2016-January/046375.html">http://lists.freepascal.org/pipermail/fpc-pascal/2016-January/046375.html</a><br><br></div><div class="gmail_extra">Pro #1: shortness of script<br></div><div class="gmail_extra">Pro #2: easier porting of C-style code (with ternary ? operator. Pascal doesn't have an equivalent <a href="https://en.wikipedia.org/wiki/%3F:#Programming_languages_without_the_conditional_operator">https://en.wikipedia.org/wiki/%3F:#Programming_languages_without_the_conditional_operator</a> )<br></div><div class="gmail_extra"></div><div class="gmail_extra"><br></div><div class="gmail_extra">thanks,<br></div><div class="gmail_extra">Dmitry<br></div><div class="gmail_extra"><br><br></div></div>