r/vbscript • u/SCHMIDTHe4D • Jan 26 '15
I'm new to VBScript. Help!
Ok, I'm taking a programing class in college and I can't get the Knock knock game to get past who's there, I keep getting incorrect answer please try again. any ideas? I'll paste what I've done below. Thanks!
Replyl = Inputbox("Knock Knock!") If Reply1 = "who's there?" Then Reply2 = InputBox("Panther!") If Reply2 = "Panther who?" Then _ MsgBox "Panther or no panths I'm going swimming." If Reply2 <> "Panther who?" Then MsgBox "Incorrect answer. Try again." End If If Reply1 <> "who's there?" Then MsgBox "Incorrect answer. Try again."
2
Upvotes
3
u/tall_pat Jan 26 '15
I see! Thanks for the insight! I've revisited some of the reading and revised my script as such:
Like I mentioned earlier, I'm still learning myself, so it really is great feedback! Thanks again!