Gold variable?

First off: Hi, I'm new to rpg maker forums!

I dont know if I posted in the right thread but I've run into a little problem.
I made a mini game in a bar using Galv's wheel of fortune plug-in. It costs money in my game but I'm not sure how to set variables so you can't play if you have under 20 gold. There should be an easy answer to that but I can't seem to figure it out right now. Can anyone tell me how to do this?

diypunx
Set the variable equal to the amount of gold. Use a conditional branch to check if that variable is above or equal to 20.
Thanks! I figured it out. Thread can be closed.
Or just use a conditional check for $gameParty._gold < 20;
@mlogan Happily, the conditional branch page 4 has Gold as an option. So you don't need to set a variable equal to the amount of gold first, just use the conditional branch, go to page 4, select Gold >= 20.

When making the conditional, you can also check the box for "Create Else Branch" if you want to give the player a message when they don't have enough gold.

Edit: Curse you ninja @Poryg !
@Llareian KISS rule: Keep it simple, silly 😛
@Poryg and @Llareian Thanks for the added info! I was on my phone at the time, so I couldn't confirm if there were other ways to check it.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/gold-variable.89791/