MZ Visustella State active at certain HP threshold

I was wondering how would I make the condition for Visustella's Skill and State Core that checks if the actor's HP is 75% or higher to apply a passive state.
You could use this note tag in the state's note box:

Code:
<JS Passive Condition>
 condition = (user.hpRate() >= 0.75);
</JS Passive Condition>
I got this to work without too much issue.

Original thread: https://forums.rpgmakerweb.com/threads/visustella-state-active-at-certain-hp-threshold.151893/