Advertisement
kshadow22

Simple If Statement

Feb 9th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. This code is used for my lesson on http://www.kshadow22.com/lesson4
  2. ___________________________________________________________________________________________________________
  3. If TextBox1.Text = "kshadow22" Then 'If my textbox1 text is equal to kshadow22, I want ____ to happen.
  4.            MsgBox("Correct!") 'I want this message to be displayed if my textbox is equal to kshadow22
  5.        Else 'If it does not equal kshadow22, I want this to happen
  6.            MsgBox("Incorrect!") 'Let this message appear if does not equal
  7.        End If 'End my if statement
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement