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

Jussi Lahtinen jussi.lahtinen at ...626...
Wed Oct 10 20:21:46 CEST 2012


Yeah, I guess I'm not good enough to be true English gentleman!

Jussi


On Wed, Oct 10, 2012 at 9:16 PM, Caveat <Gambas at ...1950...> wrote:

> LOL... you got me on the Yoda-speak one, but a true English gentleman
> would know that there *is* one message and there *are* several messages :-D
>
> On 10/10/12 20:11, Jussi Lahtinen 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
> >>
> >>
> >
> ------------------------------------------------------------------------------
> > 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