VB.NET - IIF(,,) - Both “sides” are evaluated. What situations should I watch out for?

后端 未结 5 888
天涯浪人
天涯浪人 2020-11-29 07:17

I recently learned of the IIF(A,B,C) function. I\'m a long time VB/VB.NET Coder who recently spent a lot of time coming up to speed in SQL coding.

One (obvious) commo

5条回答
  •  粉色の甜心
    2020-11-29 07:41

    Well, you should also make sure you don't have any functions in in iif that modifies any data based on the condition. We use If for a rather lot of that. It just pays to remember that about iif.

提交回复
热议问题