9 hours ago
Hi,
In the last two parameters of the function you set its output values. The first for true, the second for false.
In the last two parameters of the function you set its output values. The first for true, the second for false.
Code: (Select All)
a$ = "YES"
result = _IIf(a$ = "YES", 100, 0)
Select Case result
Case 0: Print "a$ is not YES"
Case 100: Print "a$ is YES"
End Select