Script for Variable value and recuction?

Hey everyone,

I was wondering what the script call would be to pull the Variable value and also reduce it by an amount?

I'm trying to use Variables as currency for learning skills in Yanfly's Skill learn plugin. So I want to be able to use <Learn Require Eval> to check to see if a certain variable is a certain amount, and then on the <Learn Cost Eval> reduce the variable by that amount when its purchased. However, I don't know the Variable script calls to use to get both those functions working.

Any help would be awesome! 🙂
Code:
https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/edit#gid=0
Yeah I've seen this before...it's a good resource but unless I missed it, there is nothing on there that tells you how to add/subtract to a variable or check to see if it is a certain value (just how to set it), which is what I really needed.

But I did end up figuring it out. Thanks! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/script-for-variable-value-and-recuction.84780/