You have to use a conditional if statement. I assume the feature is a part of Ace. It should allow you to choose an if statement like "if gold is < 15 then show this message." Something along those lines.
Not really relevant to the question at hand, but I'd suggest using a Self Switch for this, rather than a global Switch. Since the switch only affects this event, it's better to use a Self Switch. Global Switches are for when multiple Events use it, such as when one Event sets a switch, and one (or more) different ones check it.
There's nothing inherently bad about using the global switch the way you are, but there are two potential downsides: 1- you only have so many switches; use too many, and you'll run out. 2- Your list will get cluttered with too many switches that don't need to be on the list, and it could be hard to find the one you need.
Of course, if other things reference that switch, then ignore this, and continue using the global one.