Hi I would like to ask a question guys I am doing an application in vb.net and my if else is acting weird instead of stating the correct caption in the label it shows the else statement instead which is "Do you have anything you want to say other than that?"... Thanks in advance guys :) here is my code sirs:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "What is your name?" Then
Label1.Text = "Hi there kid! I will tell you later"
Else
Label1.Text = "Do you have anything you want to say other than that?"
If TextBox1.Text = "Hi" Then
Label1.Text = "Hi there also!"
Else
Label1.Text = "Do you have anything you want to say other than that?"
End If
End If
End Sub