Map ID Conditions

So I have a question concerning a map IDs. I have a basic script that is inconsequential but I wanted to modify it so that it happens on certain maps, right now it's set up as,

Code:
if $game_map.map_id == 287
      here is the code for maps, switches are on, pictures shown etc...
      else
      codes for other maps, switches off, pictures erased etc...
    end


now this works just fine, for a single map. Map 287 as shown, but there are multiple maps that I want this to happen to, like 287, 288, 305, 323, 324, and so on. How do I do this? I can't seem to get multiple maps to work.  Is it even possible?
I've moved this thread to RGSSx Script Support (RGSS3/Ace Scripts is when you have scripts to share with others). Please be sure to post your threads in the correct forum next time. Thank you.

Code:
[287, 288, 305, 323, 324].includes?($game_map.map_id)
Thanks for the answer, and honestly thought I did... Sorry, I was half asleep when typing that. Won't happen again!
Don't know if you noticed or not, but it should be 'include?' instead of 'includes?' (without the apostrophes, of course). The latter will trigger an error.

Original thread: https://forums.rpgmakerweb.com/threads/map-id-conditions.55843/