IIf statement - I don't understand the behavior in this context.
Private Function returnsInt() As Integer
IIf(False, returnsInt = 2, returnsInt = 4)
End Function
public sub main()
MsgBox(returnsInt())
end sub
Why would returnsInt return a 0 every time? I was thinking it should...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.