bitburner-src/markdown/bitburner.ns.args.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

608 B

Home > bitburner > NS > args

NS.args property

Arguments passed into a script can be accessed using a normal array using the [] operator (args[0], args[1], etc…).

It is also possible to get the number of arguments that was passed into a script using:

args.length

WARNING: Do not try to modify the args array. This will break the game.

Signature:

readonly args: any[];

Remarks

0 GB