[Gambas-user] Example to IIF: what is meant here

Fabien Bodard gambas.fr at ...626...
Wed Oct 10 16:26:49 CEST 2012


True
:-)
Le 10 oct. 2012 16:21, "Jussi Lahtinen" <jussi.lahtinen at ...626...> a écrit :

> > Print ("you have ") & X & iif(x>1, ("message"), ("messages "))
> >
>
> This is still not good. Better would be:
>
> Print Subst(("you have &1 &2"), x, IIf(x > 1, ("messages"), ("message")))
>
> Now translation is not depended on order of words.
>
> Jussi
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list