Help with YEP_AutoPassiveStates

Hello everyone.
I'm working on a pasive state using YEP_AutoPassiveStates, what i'm trying to do is an item which apply a Passive Skill when you have it equipped, but only if an specific actor is wearing this item, the rest wouldn't get the passive. I.E: Magic Sword that gives a +10% dmg if it's wielded by Actor 1. So far, what I did is make the Item to apply the passive (<Passive State: 482>) and in the passive place:
<Custom Passive Condition>if ($gameActors.actor(id)) === 1) { condition = true; } else { condition = false; } </Custom Passive Condition>
But its not working because the passive is active regardless the actor using the item. I'm not sure if there's a mistake in the script code or if I have to use a different code.

Thanks for the help
Might be one too many equal signs there ($gameActors.actor(id)) === 1). I haven't used this plugin, so I'm just guessing.
The correct code for what you're trying to do is:

<Custom Passive Condition>
if (user.actorId() === 1) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
Problem Solved, thanks for your help

Original thread: https://forums.rpgmakerweb.com/threads/help-with-yep_autopassivestates.80468/