On Tue, Feb 2, 2016 at 4:07 PM, geneb <ge...@deltasoft.com> wrote: I probably missed it, but what problem is "IfThen()" actually solving? > > It's a sugar syntax, for
if cond then x:= a else x:=b; Just follow this thread: http://lists.freepascal.org/pipermail/fpc-pascal/2016-January/046375.html Pro #1: shortness of script Pro #2: easier porting of C-style code (with ternary ? operator. Pascal doesn't have an equivalent https://en.wikipedia.org/wiki/%3F:#Programming_languages_without_the_conditional_operator ) thanks, Dmitry
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal