15 lines
342 B
ReStructuredText
Raw Normal View History

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