bitburner-src/doc/source/netscript/basicfunctions/serverExists.rst
2023-01-06 14:43:09 +02:00

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