Quote Originally Posted by Aflatoon View Post
I don't particularly like IIf but you could use it here:

b = IIf(6 = 5, True, False)
At least in this simple example. that seems like a more complicted way of just

b = (6=5)
I use (like ) IIf for things like


FinalCost = IIf (IsTaxable, BasicCost * TaxRate, BasicCost)
which is a one line If / Then / Else

Again, personal style / choice since I think the same number of CPU cycles are required