Using Find Location EventID with Conditional Branches

Hi there! Basically my question is as the title says, is there a way to use Find Location with an Event's ID for conditional branches? I have an event where you go up to an NPC and talk to them, but this NPC is walking back and forth between two tiles, a top tile and a bottom tile. What I would like to happen is this: If the NPC is standing on the top tile when you talk to them, the player will be moved down once and to the left once, and if the NPC is standing on the bottom tile when you talk to them, the player will be moved up once and to the left once. What is the best way to go about doing this, could I get the NPC's event location and then have it trigger a conditional branch, and if so how? Appreciate any help 🙂
use control variable to get the coordinates, then conditional branch to compare them with the numbers for the position and give different move commands in the different conditional branches
More precisely: Control Variables -> Game Data -> Character -> Map Y.

Original thread: https://forums.rpgmakerweb.com/threads/using-find-location-eventid-with-conditional-branches.161855/