Conditionals with Yanfly Job Points

Dear Makers,

I need help, and I'm not 100% sure if this is the proper place, since I'm not sure what the solution is. But the problem I'm having is that I can use Yanfly's plugin command to reduce Job Points because there is no way to check conditionally if the JP < 0. I'm using the JP in a slightly nontraditional manner, so they do not always directly translate to skills the way it's set up. So I'm wondering if there's an easy way to create a script command or an addition to the plugin that will allow you to use conditionals to check the state of the JP? Please help! Thank you in advance.
Plugin link for convenience: http://yanfly.moe/2015/11/13/yep-27-job-points/

I haven't tested, but maybe try something like this in Conditional Branch > Script:
Code:
$gameActors.actor(1).jp() < 100
I think this says "is the JP of actor 1's current class less than 100?". 😤

By default JP can't have a negative value, but you could always check the value before using the loseJp plugin command. 🙂
Thank you for the help! That makes a lot of sense, but I'm afraid that I got an "is not a function" error with that script, though. The reason I want a conditional is to make sure that when I subtract JP manually, they actually have the required JP, so I'm pretty sure I do need the conditional to make it work. Any other thoughts? Does the function need to be added to the plugin itself?
Try it without the () on the end of jp.
Oh god. This is embarrassing. 😩 Thank you Maliki and Caethyril. You were totally right, Caethyril. The problem was that I was trying to test this quickly before I went to work this morning and I...somehow forgot to add the JP plugin to my test environment.

Case closed, awesome help, thank you so much.
All good, happy RPG Making! ^_^

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/conditionals-with-yanfly-job-points.107797/