hey guys,
i've got an 'if' statement that works but i have to change it into a 'loop' statement. i originally chose 'if' because it's easier for me to understand but... it's gotta be a loop.
so if anyone could, what would be the best loop style and how would i set it up?
If chancecount <= 8 Then
If isConverted = True Then
If chancecount <= 8 AndAlso usernum < randomnum Then
chancecount = chancecount + 1
Me.xAnswerLabel.Text = "Oops, too low. Go a little higher"
ElseIf chancecount <= 8 AndAlso usernum > randomnum Then
chancecount = chancecount + 1
Me.xAnswerLabel.Text = "Whoa! Whoa! You're guessing a little TOO high now."
ElseIf usernum = randomnum Then
Me.xAnswerLabel.Text = "Congratulations, you have selected the correct number which is, " + Convert.ToString(usernum) + "!"
End If
End If
ElseIf chancecount > 8 Then
Me.xAnswerLabel.Text = "We are so sorry but your chances have expired. Don't fret, try with us again anytime. Just exit this application and restart the program. But remember... The number will never be the same! Happy Hunting!"
End If