Why wont my code work?

When I get to my first set of choices and I choose one it doesnt do what I think I told it to do:

If userinput = “A” Or userinput = “a” Then hasLightsaber = True If userinput = “D” Or userinput = “d” Then hasHelmet = True If hasLightsaber = True Then Console.WriteLine(“You picked up your lightsaber”) If hasHelmet = True Then Console.WriteLine(“You picked up your helment”)

And if you run it you can see doesn’t do that and just goes straight to the second set of choices instead.

Thank you for helping.

Code: https://pastebin.com/gaQNe4FX

submitted by /u/Skyrs9
[link] [comments]

Leave a Reply