Quote Originally Posted by jre1229
For some reason this wouldn't work. I am using text instead of "true". And actually I am checking variable2 to be equal to two different texts. There really is no variable3. Here's my code.
Code:
If Variable1 = "Text1" AndAlso (Variable2 = "Text2" OrElse Variable2 = "Text3") Then
For some reason this code will not continue if my Variable2 is "Text2" or "Text3". Anyone see why?

That code works fine
Ive tested it..
are you sure your setting your variables

If Me.TextBox1.Text = "1" AndAlso (Me.TextBox2.Text = "2" OrElse Me.TextBox2.Text = "3") Then
MessageBox.Show("PASSED")
Else
MessageBox.Show("fAILED")
End If