If and only if in vb.net 4?

924 views Asked by At

IIF seems to be unavailable in .net 4, do we have a replacement?

IIf(condition = 0, True, False)

Would be a simple if statement a good replacement?

1

There are 1 answers

0
dbasnett On BEST ANSWER

In the second? example here(VS2015RC) Microsoft is using IIF to illustrate how the If operator is short circuited, so I think IIF is still with us.