Can I use the if statement to work with "In" example
If [var] in("ABCD","EFGH") Then
Do something
End if
OR do I have to do the OR statement?
If [Var] = "Abcd" or [Var] = "EFGH"
Then
Do something
End if
Can I use the if statement to work with "In" example
If [var] in("ABCD","EFGH") Then
Do something
End if
OR do I have to do the OR statement?
If [Var] = "Abcd" or [Var] = "EFGH"
Then
Do something
End if
Case statement is the answer.
Select Case (var)
Case "abcd",'EFGH"
Do something
End Select