[Solved]Script call to check if Actor ID X has a state

In a common event, I need to make a conditional branch if an Actor has a State, but I need to make the check using the actor's ID which is stored in a variable.
So, I need to make a script call,
$gameActors.actor($gameVariables.value(3)) Has State 14.
Just need to know what the call is to check if an actor has a state for a Conditional Branch.
actor.isStateAffected(state)
returns boolean.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-script-call-to-check-if-actor-id-x-has-a-state.105937/