If State?

Hey Folks,

I am using a bunch of Yanfly Scripts, so I know this works but I am not sure... HOW...

Code:
IF b.hasState(72) == true {
State(132) == true;}

Is this right? (I cant test it for myself currently without making a whole new project).

Essentially, I want the Skill to inflict the status. Then check to see if it was successfully applied or resisted. And if it was inflicted, add a second state.
The correct formula is this.
if (b.isStateAffected(72)) {
b.addState(132)}
Thanks mate. Youre a champ.
Not really a champ, this is elementary knowledge.
Its elementary knowledge I didnt have, in a speedy manner, and I am thankful. ^_^

Original thread: https://forums.rpgmakerweb.com/threads/if-state.80199/