You need to do:

Print ("you have ") & X & iif(x>1, ("message"), ("messages "))

Le 10 oct. 2012 11:48, "Rolf-Werner Eilert" <eilert-sprac...@t-online.de> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to