Hey there, I'm new to construct and I can't really think of a way to solve a problem I have. I'm making a silly little gambling game and I have a global variable for your total money and another for how much you're betting(if there's a better way to do this please tell me).
The Problem:
Global Variable B(the bet amount) can currently surpass Global Variable A(your total money), how do I stop that from happening?
My idea would be to somehow make an event that makes it so the bet amount variable must be less than or equal to the total money variable but I have no idea how to go about that. I'd also like help making it so you can't be negative on the bet amount.