Hi, I started working with the tutorial section of this website about 3 weeks ago, and I try to make a program every day. I like games, therefore I usually make simple programs that have something to do with common rpg stats. I finished the chapter about functions about 2 days ago, and decided to make a program using each "type" of function. However, This particular program has me stumped seeing as how it works without problems if a != yes, but it displays both : "the players damage remains constant" and "the players damage is doubled", even though it shows the correct value for the variable damage. This has lead me to believe that both the if and else statements are being executed, which I actually did not even think was possible.
If you got this far, thank you for taking the time to read my post. Any help would be much appreciated.
Wow! Thank you so much for your fast and accurate response! I have to say, I really appreciate this forum and great users like you who are willing to help a beginner out.