MZ Custom param Learning treshold

Ok so it been a long time since i asked for anything since for the last 2 years i worked on understanding more about how program work, but here i am again asking myself how to get this to work, so i got 2 extra custom param, that divided in 3 the physical and the mental skill so to say. i check under yanfly.moe, to make sure i got all the information but seem like im still missing on something,

So im trying to make my character learn a skill upon reaching a treshold of his stat to get the skill to be available to learn now if i go by yanfly.moe, i'm supposed to be able to call a custom param, using this method

<JS Learn Show>
((user.def)+(user.atk)+(user.agi)/3) >= 3
enabled=true;
</JS Learn Show>


But nothing seem to pop out so, im starting to ask myself if i need to check a "par.process" before hand, to check if user is >=3
Since (custom.param) isnt in visustella core and there seem to have no param check im a bit lost how to be able to get to that result

My other option, one i didnt tried yet, is to call actor id one by one and check if Actor.Id_param is >=3 but there too im not sure how to write it down....

maybe it my javaScript syntax that is incorrect, maybe it something else i came to my limit...

Any help is welcome...
<JS Learn Show>
((user.def)+(user.atk)+(user.agi)/3) >= 3
enabled=true;
</JS Learn Show>
looking at the webpage the for the plugin, the variable you need to be writing to is "visible", not "enabled". then you also didnt actually set up a condition of any kind. try
Code:
<JS Learn Show>
visible = user.def + user.atk + user.agi/3 >= 3;
</JS Learn Show>
Ty @Robro33 my biggest problem is that, i didnt figure out that i needed 3 step to make it work

1rst step: set the list of skill the class can learn

<Learn Skills>
name
id
</Learn Skills>
2nd step:
Set the price to learn

<Learn Skill Costs>
AP: x
SP: x
Item id: x
Item name: x
Weapon id: x
Weapon name: x
Armor id: x
Armor name: x
Gold: x
</Learn Skill Costs>

Both step are to be setup in Class notetag

3rd step: setup the "eval"

<JS Learn Show>
visible = user.def + user.atk + user.agi/3 >= 3;
</JS Learn Show>


All step is needed for the formula to work like in A+B=C

i thougth of writing it down more clearly for the other.

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/custom-param-learning-treshold.176813/