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:
00095155
Vues:
22
>Hello,
> Is an IIF() faster than an If-Else-Endif statement?

As has been stated, yes it is. However, Bret's readability point is an excellent one. Unless conditions exist that make it absolutely necessary (in a loop with a large number of iterations, for example), my feeling is the the speed difference is so minimal, that using the IF/ELSE/ENDIF block is the way to go.

Personally, I tend to use IIF() only in reports and in queries.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform