Author | Message |
---|---|
Anonymous
Posts: 166
|
Posted 22:37 Mar 11, 2014 |
I'd like to know what this means; (myMoney >= 5) ? 5 : 0; Am I supposed to replace this with something? |
Eric Liao
Posts: 158
|
Posted 22:38 Mar 11, 2014 |
Yes, you may replace that part to your strategy. What it means is the same as following: if (myMoney >= 5) { return 5; } else { return 0; } |
Anonymous
Posts: 166
|
Posted 22:41 Mar 11, 2014 |
Okay, cool, thank you! I was wondering why it kept returning 5. Thanks! |