MV YEP Absorption Barrier, Auto Passive States - Problem with creating specific state

Hello,

I am trying to create a passive state which would increase atk of an actor by X whenever he has any amount of barrier points. I noticed that Auto Passive States supports custom passive conditions with <Custom Passive Condition> </Custom Passive Condition> notetag and Absorption Barrier has JS function battler.barrierPoints() (returns value of the total amount of barrier points battler has). However I am not very proficient with JS so I am not sure how to create this state.
<Custom Passive Condition> condition = user.barrierPoints(); </Custom Passive Condition>
<Custom Passive Condition> condition = user.barrierPoints(); </Custom Passive Condition>
Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yep-absorption-barrier-auto-passive-states-problem-with-creating-specific-state.145050/