mmm. still not working. Ill keep searching for a solution.

systemList = generator.GetAllSystems();

for (var i = 0; i< systemList.length;i++)

{

if (game.GetSystemBases(systemList*) == !/\S/ *

|| game.GetSystemBases(systemList*) == null *

|| game.GetSystemBases(systemList*) == " " *

|| game.GetSystemBases(systemList*) == "" *

|| game.GetSystemBases(systemList*) == undefined *

|| game.GetSystemBases(systemList*) == "undefined")*

{

var indexToRemove0 = systemList.indexOf(systemList*); ---- with dual closing brackets with i of course.*

systemList.splice(indexToRemove0,1);

}

var tempBasesArray = game.GetSystemBases(systemList*); ---- with dual closing brackets with i of course.*

if (tempBasesArray.length === 0 || tempBasesArray.length == 0)

{

var indexToRemove0 = systemList.indexOf(tempBasesArray);

systemList.splice(indexToRemove0,1);

}

}

EDIT: so weird. I must be doing something wrong because its still not working with this.

for (var i = 0; i< systemList.length;i++)

{

if (game.GetSystemBases(systemList*) == !/\S/ *

|| game.GetSystemBases(systemList*) == null *

|| game.GetSystemBases(systemList*) == " " *

|| game.GetSystemBases(systemList*) == "" *

|| game.GetSystemBases(systemList*) == undefined *

|| game.GetSystemBases(systemList*) == "undefined")*

{

var indexToRemove0 = systemList.indexOf(systemList*);---- with dual closing brackets with i of course.*

systemList.splice(indexToRemove0,1);

}

var tempBasesArray = game.GetSystemBases(systemList*);---- with dual closing brackets with i of course.*

console.Print(tempBasesArray.length + " " + " stationListArray");

if (tempBasesArray.length === 0 || tempBasesArray.length == 0)

{

if (tempBasesArray == systemList*) ---- with dual closing brackets with i of course.*

{

var indexToRemove0 = systemList.indexOf(systemList*);---- with dual closing brackets with i of course.*

systemList.splice(indexToRemove0,1);

}

}

}