在vb中,if和iif有什么不同?

2025-02-25 21:37:35
推荐回答(1个)
回答1:

给你具个例子

s=iif(a=1,2,3)
相当于
if a=1 then
s=2
else
s=3
end if