Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: IIF()
Divers
Thread ID:
00095089
Message ID:
00095181
Vues:
22
Awww, another good point: "no visible difference in performance"

A difference of less than a millisecond is not something I would ever weigh more heavily that readability...

Joe

>>Hello,
>> Is an IIF() faster than an If-Else-Endif statement?
>
>I agree with Bret and George. Also, to make one small addition to the readibility issue, CASE structures are alot easier to read and debug than nested IIF() statements. I spent half a day one time changing IIF() statements, some nested 5 to 6 levels, to CASE structures in a program I inherited. The readibility of the code is a million times better and there was no visible difference in performance.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform