Page 1 of 1

Ternary

Posted: Tue Sep 06, 2011 11:22 am
by kevin11
Does LC support the ternary operator ?
And if not, when can you have it ready for me please ? ;)

Re: Ternary

Posted: Tue Sep 06, 2011 1:07 pm
by Klaus
Lazy typer! :lol:

Re: Ternary

Posted: Sat Sep 10, 2011 12:20 am
by Mark
Hi,

I think that would be something like this

Code: Select all

function iif theArg1,theValue1,theValue2
     if value(theArg1) then
          return theValue1
     else return theValue2
end iif
Kind regards,

Mark