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

Fabien Bodard gambas.fr at ...626...
Wed Oct 10 12:47:13 CEST 2012


Yes caveat its true this way is available for just a few of language for
example I think it not work for Germany or asian
Le 10 oct. 2012 11:58, "Fabien Bodard" <gambas.fr at ...626...> a écrit :

> You need to do:
>
> Print ("you have ") & X & iif(x>1, ("message"), ("messages "))
>
> Le 10 oct. 2012 11:48, "Rolf-Werner Eilert" <eilert-sprachen at ...221...>
> a écrit :
> >
> > Hi all,
> >
> > Who has made the examples for IIF? Maybe you can explain what you meant
> > by "not translatable":
> >
> > ' Never do the following in real code, because it is not translatable!
> > X = 7
> > PRINT "You have " & X & " message" & If(X <> 1, "s", "") & " waiting."
> >
> >
> > Thanks
> >
> > Rolf
> >
> >
> ------------------------------------------------------------------------------
> > 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