mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 23:22:29 +01:00
15 lines
342 B
ReStructuredText
15 lines
342 B
ReStructuredText
serverExists() Netscript Function
|
|
=================================
|
|
|
|
.. js:function:: serverExists(hostname)
|
|
|
|
:RAM cost: 0.1 GB
|
|
:param string hostname: Hostname of target server.
|
|
:returns: ``true`` if the target server exists.
|
|
|
|
Example:
|
|
|
|
.. code-block:: javascript
|
|
|
|
ns.serverExists("foodnstuff"); // returns: true
|