Hi, I have the following condition
If InStr("a,b,c", stringA) > 0 OrElse (InStr("y,z", stringB) > 0 AndAlso value = 0) Then endif
COndition 1 is false so i check for condition 2 that is "(InStr("y,z", stringB) > 0 AndAlso value = 0) "
What puzzles me is that when stringB is nothing it still falls into the if condition and executes the code.
On first look it would seem that when stringB is nothing condition2 would fail and as a result would not fall into the if condition.
Any explanation why this would happen?
thanks