MV Checking parameters with JavaScript?

I'm using Yanfly's Skill Learn System and want to set a custom requirement so the actor can't learn a skill unless one of their parameters is high enough. I think it would be doable with the lunatic mode settings

<Learn Require Eval>
value = true;
value = false;
</Learn Require Eval>

But I don't know much coding and nothing I've tried worked. How would I go about doing this?
What have you tried?

Something like this might work:

<Learn Require Eval> value = user.luk >= 50; </Learn Require Eval>
I.e. the requirement is met iff the user's LUK is 50 or more.
What have you tried?

Something like this might work:

<Learn Require Eval> value = user.luk >= 50; </Learn Require Eval>

I.e. the requirement is met iff the user's LUK is 50 or more.
That worked, thanks!
Great!

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/checking-parameters-with-javascript.145841/