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

Caveat Gambas at ...1950...
Wed Oct 10 19:59:25 CEST 2012


Still wouldn't work for Yoda-speak"

"29 messages have you" :-)


On 10/10/12 16:26, Fabien Bodard wrote:
> 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
>>
> ------------------------------------------------------------------------------
> 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