[RMVX Ace] Hime Conditional State

I use the Himeworks script, Conditional Passive States. it is an addon from the Passive States Neonblack script.

I want to make it where when the player uses the weapon type "Bow" then the player has a passive in state 13,
if using the weapon type "Bowgun" then the player has a passive on state 14,
and if the player does not use one of the two weapon types earlier (Bow and Bowgun) then the player doesn't have any passive.

is it possible to create conditions like this?
please help me in making conditions like this.
I haven't tested it, but I read Hime's Conditional States script and I imagine you could use something like this in the notetag:
Code:
<conditional state>
return 0 if !a.weapons[0]
if a.weapons[0].wtype_id == X
  13
elsif a.weapons[0].wtype_id == Y
  14
else
  0
end
</conditional state>
I haven't tested it, but I read Hime's Conditional States script and I imagine you could use something like this in the notetag:
Code:
<conditional state>
return 0 if !a.weapons[0]
if a.weapons[0].wtype_id == X
  13
elsif a.weapons[0].wtype_id == Y
  14
else
  0
end
</conditional state>
thanks for the response. i have already tried this in my project and this is not working.
then I tried to change the note a bit like this,
note.PNG
but when I test, it only takes the upper passive (passive [13]).
The problem is that Neon Black's script is reading that notetag (passive[13]) and grabbing it, disregarding the condition. How do you have the states and notetags set up? I believe the way Hime's script works is that you need to have a placeholder state that then checks the conditions and applies the new state (e.g. state 13).

Original thread: https://forums.rpgmakerweb.com/threads/rmvx-ace-hime-conditional-state.115794/