Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is this regular expression for some property in VB 6: iif (integervariable, 0, 1)?

Is this regular expression for some property in VB 6:

iif (integervariable, 0, 1)

If it is i want to know how does iif resolve integer argument without any logical comparisons?

like image 528
user1982935 Avatar asked Jan 27 '26 04:01

user1982935


1 Answers

It's not a regular expression, it's a function call, with IIf being the function.

It's possible to use integer variables in boolean context in VB. In that case 0 translates to False and non-zero to True.

like image 200
GSerg Avatar answered Jan 29 '26 18:01

GSerg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!