How to limit user calculation if they exceeded the limit in Batch?

For example:
A user has 10 points, he wanted to "buy" a random stuff which "costs" him 11 points.
So when the user wanted to buy, how do you make him unable to "buy" that stuff? (In batch cmd)

Please ask me to write more details if you need me to.

Report as