Created
January 22, 2018 00:37
-
-
Save ryanbekhen/26abf1c3dd5e7ce44a8a53d833a40bda to your computer and use it in GitHub Desktop.
Bad code branching If condition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Score > 80) { | |
VirtualMoneyPrice = 1000; | |
} | |
if (Score > 40) { | |
VirtualMoneyPrice = 400; | |
} | |
if (Score > 30) { | |
VirtualMoneyPrice = 100; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment