MV Yep_X_BattleStatistics Skill visibility assistance

This post is a follow-up to this request for support:

Background:
Utilizing YEP_SKillCore, I have skills only visible when the actor is in a particular "TP Mode." The actor starts with all their skills. Currently, different skills become available when the player switches TP modes due to YEP_EnhancedTP.

Request:
The end state is to have the skills mentioned above only visible after the user has a certain number of kills utilizing Yep_X_BattleStatistics. I want to combine the previous TP mode script with the desired new one embedded within the skill/s. I opened the BattleStatistics plugin via Notepad to find the code necessary to create the following failed script:

JavaScript:
<Custom Show Eval>
visible=user.tpModeId()==2 || this._actor.killCount()>=5;
</Custom Show Eval>

Failed meaning with the new "killCount" addition. I also tried "user.killCount()", but it did not work either. Assistance getting this right is greatly appreciated. Thank you.
JavaScript:
<Custom Show Eval>
visible=user.tpModeId()==2 || this._actor.killCount()>=5;
</Custom Show Eval>

Failed meaning with the new "killCount" addition. I also tried "user.killCount()", but it did not work either.
You're referencing the kill count correctly - user.killCount() - but it looks like you're using the wrong operator.

|| is boolean OR, which means the actor will see the skill if they're in TP mode 2 OR they have at least 5 kills.

From your description above, you want both conditions to be true, so you'd use AND:
Code:
visible=user.tpModeId()==2 && user.killCount()>=5;
You're referencing the kill count correctly - user.killCount() - but it looks like you're using the wrong operator.

|| is boolean OR, which means the actor will see the skill if they're in TP mode 2 OR they have at least 5 kills.

From your description above, you want both conditions to be true, so you'd use AND:
Code:
visible=user.tpModeId()==2 && user.killCount()>=5;
Turan, thank you for the JS education. As always, you are awesome! SOLVED.

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/yep_x_battlestatistics-skill-visibility-assistance.153395/