MV (SOLVED) Yanfly's Skill Learn System (YEP) - Looking To Make Class-Based JP Costs

Hello! I'm utilizing Yanfly's JP and Skill learning systems to have learnable skills outside of leveling up. I'm a big fan of these mechanics, but there is one thing I'm hoping to accomplish that I'm having some trouble doing with my limited JS knowledge.

Is there any way I can have the same skill cost differing amounts of JP (Job Points) depending on what class is trying to learn it?

Let's say, for example I have a skill called "Big Attack" with an ID of 123 and by default all skill costs are 200 JP. I want the Knight class (ID of 1) to learn "Big Attack" at a cost of 500 JP, but I also want the Warrior class (ID of 2) to learn "Big Attack" at the default cost of 200. How would I go about coding this in the note tags?

Is there any sort of way to accomplish this aside from making multiple instances of the same skill? I would greatly appreciate any assistance from whoever has knowledge in this sort of thing.
Maybe using this for the skill note tag?
Code:
<Custom Learn JP Cost>
if (user.currentClass().id === 1){cost = 500;}
else{
if (user.currentClass().id === 2){cost = 200;}}
</Custom Learn JP Cost>
It works perfectly!!! Exactly what I was hoping to accomplish. I had a feeling it would be a matter of writing conditions in the coding, I just had no idea how exactly to go about making it myself. Anyways, thanks a lot!
Maybe using this for the skill note tag?
Code:
<Custom Learn JP Cost>
if (user.currentClass().id === 1){cost = 500;}
else{
if (user.currentClass().id === 2){cost = 200;}}
</Custom Learn JP Cost>

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/solved-yanflys-skill-learn-system-yep-looking-to-make-class-based-jp-costs.150800/