I tried debugging it, but I can't figure out what's wrong.
[/quote]
We don't know either since you didn't say what the actual problem is.
Well that's not true... The issue is that you're checking a new instance rather than the one with the actual input. But in the future it might not be so obvious.
<br />I tried debugging it, but I can't figure out what's wrong.<br />
<br /><br />We don't know either since you didn't say <i>what the actual problem is.</i><br /><br />Well that's not true... The issue is that you're checking a new instance rather than the one with the actual input. But in the future it might not be so obvious.<br />[/quote]<br /><br /><br />
Sorry I'm still a bit new to programming. How can I reference userInput so I can use it instead of creating a new instance of it?
<br />I tried debugging it, but I can't figure out what's wrong.<br />
<br /><br />We don't know either since you didn't say <i>what the actual problem is.</i><br /><br />Well that's not true... The issue is that you're checking a new instance rather than the one with the actual input. But in the future it might not be so obvious.<br />[/quote]<br /><br /><br />
Sorry I'm still a bit new to programming. How can I reference userInput so I can use it instead of creating a new instance of it?
[/quote]
Something like that, but the errors you're making show a fundamental lack of understanding about how objects are instantiated. Don't try to do too much. I can't help too much without giving code essentially to copy. You need to learn how to construct your program to do what you need.