How to make multiplayer teams?

I thought I could use an integer as 1 and 0 and just connect is up to a branch to set the team but have not had any luck. Would this be the right way to make is or is there a more efficient way? I want this all done in blueprint if possible.

That would the right way to do it. That’s how I do it anyways.