[fpc-pascal] New feature: IfThen() intrinsic

Michael Van Canneyt michael at freepascal.org
Tue Feb 2 11:49:21 CET 2016



On Tue, 2 Feb 2016, Sven Barth wrote:

> Am 02.02.2016 10:20 schrieb "Felipe Monteiro de Carvalho" <
> felipemonteiro.carvalho at gmail.com>:
>>
>> If other people already use "iif" then maybe it is better to use the same
> name?
>>
>> Also I vaguely remember at least a few functions in existing code
>> named IfThen which would conflict with the new one.
>
> That's one of the main arguments that let this thread explode...
>
>> But "iif", well I never saw anyone name a function like that...
>
> Michael Van Canneyt AFAIK?

At least Firebird & Microsoft SQL Server and MS-Access contain it.
FastReport uses it.

I use this since 15+ years, I didn't make up this name myself :-)

Michael.



More information about the fpc-pascal mailing list