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

Rolf-Werner Eilert eilert-sprachen at ...221...
Fri Oct 12 12:31:48 CEST 2012


Just a question:

Am 10.10.2012 16:20, schrieb Jussi Lahtinen:
>> 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")))

Why do you put the () around the ""?

According to the Subst help page, a simple "" should do.

Rolf




More information about the User mailing list