Page 1 of 1

What function is this?

Posted: Fri Aug 17, 2012 6:57 pm
by Cheatmasterbw
I cant remember the name of this function. it is like this:

FunctionName(boolean, object, object)
if the boolean is true, the function returns the first object. if it is false, it returns the second.

thanks if you can help :D

Re: What function is this?

Posted: Fri Aug 17, 2012 8:16 pm
by Martin
maybe its this?
Code: Select all
if boolean = true then 
return object1
else
return object2
end if

Re: What function is this?

Posted: Fri Aug 17, 2012 9:28 pm
by mandai
In VB.Net you can use the IIf function, I think this is what you are looking for.