Conditional branch to check if gold is higher than a variable

I have an inn in a town where I want the cost per night to be a random amount of gold (called Foqqy in my game) ranging from 146 to 643.

I set up a variable to generate the random number. However, when I try to set up the conditional branch to check if the party has enough Foqqy and I select the 'Gold' option, I can only input a specific amount. I cannot make it check if it is higher than a variable.

So, I am wondering if there is another way I can set up the conditional branch to check if the party has more Foqqy than the variable that I set up.

Is there a conditional branch script call or another way of doing this?

I plan to use a switch that will turn itself off once you have slept in the inn so that the player does not spam for a low amount (seriously, if that is required at this point in the game, you are a hoarder).
load the gold value into a second variable and check if it is higher than the first variable
That's because you do not compare your rng cost to the gold directly, you save the current party gold to a variable and compare those two instead.
1693818009857.png


Edit: Ninja'd by @Andar tch.
It can also be done with just the one variable and a script command for the conditional branch
1693839053230.png

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-to-check-if-gold-is-higher-than-a-variable.160891/