This question already has an answer here:
I built a town in Minecraft, and I want to add a currency system. I know you can test for exactly a certain number with /execute; however, it's very annoying to have to sort out EXACTLY the amount needed to buy something. So my question: Is there a way to test for 3 or more of an item? Like, if you're holding 64 currency and the item you're buying costs 3?