Help with checking if Player has a weapon equipped

I'm using a Conditional Branch with $gameActors.actor(1).hasWeapon() in the Script line, and it's coming back as false whether the player has a weapon equipped or not.

What am I missing?
I'm not sure where you found the reference for that script call, but it's incorrect syntax.

The hasWeapon() method checks whether an actor has a specific weapon equipped, and requires that weapon as an argument. So if you wanted to know whether actor ID 1 has a short sword equipped, you might do $gameActors.actor(1).hasWeapon($dataWeapons[5])

To just see whether that actor is armed at all, you would do $gameActors.actor(1).weapons().length

@ATT_Turan

Ahhh. .length thank you. Much appreciated!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-checking-if-player-has-a-weapon-equipped.168558/