Set variable 0002:Gina_X to X of Gina if Gina is player 2?

How do I do ^ in RPG Maker MV please? Thank you.
How are you defining "player 2"?
check the "game data" section of the control variable command, that gives you access to all that data.

However, depending on if you're asking for the actor with ID=2 or if you're asking for the actor in party position 2 (which is not the same), you'll need different sequences of control variable and conditional branches. That is why Trihan asked, you need to give more details for a more detailed help.
Here the solution.....
Code:
if ($gameVariables.value('Gina_X')==='Gina_X') {
    //do this thing
}

Here is the little help with the little information you give.
If you want more help, take the time to give more information.

ps: Please fill out your profile, This can help
@Trihan I mean party member in second place.
Code:
if ($gameParty.members()[1] === $gameActors.actor(ID OF GINA)) {
  $gameVariables.setValue(2, $gamePlayer.followers().follower(0).x)
}

Original thread: https://forums.rpgmakerweb.com/threads/set-variable-0002-gina_x-to-x-of-gina-if-gina-is-player-2.76478/