Right now you have it run whenever the player's minerals are less than 4, which means when they are 3 or below. Then in the else clause you subtract the minerals by 5. I don't understand what your question has to do with what you provided or what it is that is not working.
@bulletbutter: Go
Right now you have it run whenever the player's minerals are less than 4, which means when they are 3 or below. Then in the else clause you subtract the minerals by 5. I don't understand what your question has to do with what you provided or what it is that is not working.