Skip to content

Instantly share code, notes, and snippets.

Created October 27, 2011 17:35
Show Gist options
  • Save anonymous/1320235 to your computer and use it in GitHub Desktop.
Save anonymous/1320235 to your computer and use it in GitHub Desktop.
var tabInventaire = new Array ("dague","arc", "bombe","epee","fleche","epee","arc");
var tempInventaire = new Array ();
for (var i = 0; i < tabInventaire.length; i++)
{
if (tabInventaire[i] != "epee" || tabInventaire[i] != "arc")
{
tempInventaire.push(tabInventaire[i]);
}
}
tabInventaire = tempInventaire;
trace(tabInventaire);
// dague, bombe, fleche
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment