if(REDTEAMCOUNT > BLUETEAMCOUNT) { // Player Join in BLUE TEAM } if(BLUETEAMCOUNT >= REDTEAMCOUNT) { // Player Join in RED TEAM }