Create dynamic Gold/Diamond Counter

Hi all,

Very new to the uefn space especially with Verse.

Wondering if someone can help me.

I am attempting to make a dynamic Gold/Diamond counter that is attached to a conditional button. For example, a player upgrade costs 5 Gold, if the player has 2 gold and activates the conditional button it will take 5-2 and output 3 as the reaming number of gold required.

Any help with trying to accomplish this with purely devices only would be great, but I also don’t mind if it has to be verse code.