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

Jussi Lahtinen jussi.lahtinen at ...626...
Wed Oct 10 20:13:34 CEST 2012


Oh, little error! "there is" should be "there are", so it is not possible
that easily!

Jussi



On Wed, Oct 10, 2012 at 9:11 PM, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:

> You could even translate it to "gentleman English".
>
> "you have &1 &2" --> "Good sir, there is &2 for you, actually &1 &2."
>
> Result would be example:
>
> "Good sir, there is messages for you, actually 99 messages."
>
>
> Jussi
>
>
>
>
>
> On Wed, Oct 10, 2012 at 9:08 PM, Jussi Lahtinen <jussi.lahtinen at ...626...>wrote:
>
>>
>> Still wouldn't work for Yoda-speak"
>>>
>>> "29 messages have you" :-)
>>>
>>
>> Wrong, this would work.
>>
>> Code was:
>>
>> Print Subst(("you have &1 &2"), x, IIf(x > 1, ("messages"), ("message")))
>>
>> And so, you would translate "you have &1 &2" to "&1 &2 have you".
>>
>>
>> Jussi
>>
>>
>



More information about the User mailing list