Conditional Branch for Weapon Type?

I would like to set a conditional branch to the weapon type ID the actor is equipping. Is that possible somehow?
yes

Code:
$gameActors.actor(1)._equips[0].itemId() == 1
yes



$gameActors.actor(1)._equips[0].itemId() == 1

Thank you, that was helpful.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-for-weapon-type.57549/