Conditional branch with map ID?

I'm sure I'm missing something obvious here, sorry if I am. I want to make a conditional branch that checks if the player is on a certain map. Thanks for reading!
Well, you could set a variable to Game Data > Map ID, and then reference that variable in a conditional branch. Or you could go into the Script area of a conditional branch and put : '$game_map.map_id == x' Where x is the ID of the map.
Nice! I went with your second solution, it worked perfectly. For anyone else reading this don't forget to leave the preceding 0 off your map ID (if it has one) or the interpreter will throw an error. Thanks Exhydra! 😀

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-with-map-id.41512/