Created
January 22, 2018 00:39
-
-
Save ryanbekhen/71e20cb97cfc9fa7b7ec8ad60665fa00 to your computer and use it in GitHub Desktop.
Clean 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; | |
} else if (Score > 40) { | |
VirtualMoneyPrice = 400; | |
} else if (Score > 30) { | |
VirtualMoneyPrice = 100; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment