Use this if you like:
Function IIF:Object(condition, result1:Object, result2:Object)
If condition Then Return result1 else Return result2
End Function
This will be slower than just doing an if then, and also you will in many cases need to cast the result, but hey.
Function IIF:Object(condition, result1:Object, result2:Object)
If condition Then Return result1 else Return result2
End Function
This will be slower than just doing an if then, and also you will in many cases need to cast the result, but hey.