How can I compare Input Name Processing to a variable?

First I have the player name an Actor using the Name Input Processing event command.

After that - what I am trying to do is set up a condition that checks if the name the player inputted is equal to a Variable.

Does anyone know how to do this?  
Conditional Branch - Script - $gameActors._data[X]._name == "Sam"

You can replace "Sam" with anything, including $gameVariables._data[X].
It's better to use the provided functions instead of reaching into the properties themselves.

Code:
Conditional Branch: Script: $gameActors.actor(n).name() === $gameVariables.value(x)
It's better to use the provided functions instead of reaching into the properties themselves.

Conditional Branch: Script: $gameActors.actor(n).name() === $gameVariables.value(x)
Worked perfectly.

Thank you very much.

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-compare-input-name-processing-to-a-variable.53592/