MV Yanfly Learn Skill System - Subtract Variable to Learn Skill?

I don't know if I'm just being dense, but I can't seem to figure out how to make the player pay for a skill via variables via the Learn Cost Eval notetag.

EX. If Variable 556 is over 500, the player can "spend" 500 of Variable 556 to learn a specific skill.

I've tried $gameVariables.value(556, $gameVariables.value(556) - 500), but nothing seems to happen.
Hi!

$gameVariables.value(ID) → Just return the value of the variable.

$gameVariables.setValue(ID, value) → Set a value for the variable.

So try using the second one.

$gameVariables.setValue(556, $gameVariables.value(556) - 500)
Hi!

$gameVariables.value(ID) → Just return the value of the variable.

$gameVariables.setValue(ID, value) → Set a value for the variable.

So try using the second one.

$gameVariables.setValue(556, $gameVariables.value(556) - 500)

I could have sworn that i just did this? Was the formatting incorrect or something from the MV script call collection I copied my original version from lmao.

Anyway, thank you @Eliaquim - that seems to have fixed my problem!
This thread is being closed due to being solved. If you would like it opened, report it at let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-learn-skill-system-subtract-variable-to-learn-skill.157266/