Skip to content

Instantly share code, notes, and snippets.

@MarksCode
Created November 23, 2017 23:09
Show Gist options
  • Save MarksCode/fcad0d07e9e611a86852247313963a2c to your computer and use it in GitHub Desktop.
Save MarksCode/fcad0d07e9e611a86852247313963a2c to your computer and use it in GitHub Desktop.
if (playerTeam == myTeam) { // check if player is on our team
playersOnOurTeam.push(playerData); // add player's data to our team array
} else { // player is on the other team
playersAgainst.push(playerData); // add player's data to our against array
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment