Full Party Condition

Hi, I'm a little new, so sorry if this is a silly question.


Right now working on a game where you can manually add party members with different abilities, but I'd like it so after you have four actors in the party, you can't add another. Is there an easy way to do this other than just adding a long conditional branch check to see who all is in the party?


Ideally, I wanted to do something like:


Conditional Branch:


If : Party Contained 4 Members


    Text: Sorry, you can't have any other party members, switch out a member?


    Show Choices: Yes, No


         If Yes


            Select Party member


         If No


    Else


    Add Actor to Party


Again, this might be obvious, but I couldn't figure it out, and hope you guys are all having fun with RPG Maker MV!
control variables : Game Data : Other : Party Member


and then conditional branch, if Variable = 4 do not add member
control variables : Game Data : Other : Party Member


and then conditional branch, if Variable = 4 do not add member

Thank you so much! That worked perfectly.

Original thread: https://forums.rpgmakerweb.com/threads/full-party-condition.57901/