On Tue, 2 Feb 2016, Dmitry Boyarintsev wrote:
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
So it's not solving a /problem/ it's lessening an inconvienence(sp!).
I would've gone with IIf(). :)
g.
--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.diy-cockpits.org/coll - Go Collimated or Go Home.
Some people collect things for a hobby. Geeks collect hobbies.
ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://scarlet.deltasoft.com - Get it _today_!
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal