Help with Gold and Variables

[SOLVED]

Hello guys!

I'm trying to make an open donation box system in my game, where you can set how much money you want to donate. The deal is: I can't find a solution to check if the party has the necessary amount of gold.

Player wants to donate 10g -> Game checks if the player has at least 10g -> if the player has it, the donation will proceed and the money will be taken.

The green part is ok, I can do that. But how do I do the blue part?

(sorry for my poor English)

-----------------

EDIT: So... I've just found it. I'm feeling stupid now, hehe. I'm sorry.
@guking No need to apologise. We've all had the experience of seeing the answer soon after we've posted a query.

Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/help-with-gold-and-variables.100013/