Conditional question using include method

So when I used one include in my conditional statement, there's no problem. Problem only arises when I set that 2 include? statements need to be true, is when I get an error. Is there a way to fix the error below? If I remove the && and use || it's only checking to see if only one of the criterias matches, meanwhile I want both which is why I used &&

@a = $game_party.battle_members[0]@b = $game_party.battle_members[1]if [2].include?(@a.id) && [2,3,4].include(@b.id)  @result_class = 4elseendError:

Spoiler
2r2c5km.png
You forgot the ? on the 2nd include
omg, are you serious.. I am so stupid :/ I should have noticed that. thanks Ill try it and see if it works

edit: damn cant believe it was that simple, thank you again 🙂 it helps with an fresh pair of eyes when ive been staring at this all day D:
🙂


take a break every few hours. it helps.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-question-using-include-method.25413/