Home > bitburner > NS > serverExists
Returns a boolean denoting whether or not the specified server exists.
Signature:
serverExists(host: string): boolean;
Parameter | Type | Description |
---|---|---|
host | string | Hostname of target server. |
Returns:
boolean
True if the specified server exists, and false otherwise.
RAM cost: 0.1 GB