Special variable checked number from variable

Hi I making logical puzzle and I need some command to get it work fine.

Im usining conditional branch to check the X and Y position


and... I would like to know how set this to work:
$game_map.events[$game_variables[581]].x = 8


(where $game_variables[581] the value of the next event ID) 


because if I put something like that in conditional branch script I got error...


Please someone help ! I would really aprecciate any sugestion!
If it's going into a conditional branch it should be a double == vs one =. With just one you are setting the x variable to 8 vs checking if it equals 8.
Thank you very much 🙂!

Original thread: https://forums.rpgmakerweb.com/threads/special-variable-checked-number-from-variable.57833/