Formated Server Array

Array

const servers = ["n00dles", "foodnstuff", "sigma-cosmetics", "joesguns", "nectar-net", "hong-fang-tea",

"harakiri-sushi", "neo-net", "zer0", "max-hardware", "iron-gym", "phantasy",

"silver-helix", "omega-net", "crush-fitness", "johnson-ortho", "the-hub", "comptek",

"netlink", "rothman-uni", "catalyst", "summit-uni", "rho-construction", "millenium-fitness",

"aevum-police", "alpha-ent", "syscore", "lexo-corp", "snap-fitness", "global-pharm",

"applied-energetics", "unitalife", "univ-energy", "nova-med", "zb-def", "zb-institute",

"vitalife", "titan-labs", "solaris", "microdyne", "helios", "deltaone", "icarus", "zeus-med",

"omnia", "defcomm", "galactic-cyber", "infocomm", "taiyang-digital", "stormtech", "aerocorp",

"clarkinc", "omnitek", "nwo", "4sigma", "blade", "b-and-a", "ecorp", "fulcrumtech", "megacorp",

"kuai-gong", "fulcrumassets", "powerhouse-fitness"];

For-Loop Example (using NS2)


//Example: You can use a for loop to walk through the list and retrieve data:

var i;

for (i = 0; i < servers.length; ++i)

{

var maxRam = ns.getServerMaxRam(servers);

var maxMoney = ns.getServerMaxMoney(servers);

ns.tprint(servers + "\n maxRam: " + maxRam + "; maxMoney: " + maxMoney + "\n\n");

}

Source: https://steamcommunity.com/sharedfiles/filedetails/?id=2699222305					

More Bitburner guilds