bitburner-src/doc/source/netscript/basicfunctions/serverExists.rst

15 lines
339 B
ReStructuredText
Raw Normal View History

serverExists() Netscript Function
=================================
2021-03-12 08:51:56 +01:00
.. js:function:: serverExists(hostname)
:RAM cost: 0.1 GB
2021-03-12 08:51:56 +01:00
:param string hostname: Hostname of target server.
:returns: ``true`` if the target server exists.
2021-03-12 08:51:56 +01:00
Example:
.. code-block:: javascript
serverExists("foodnstuff"); // returns: true