bitburner-src/markdown/bitburner.ns.serverexists.md

31 lines
628 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [serverExists](./bitburner.ns.serverexists.md)
## NS.serverExists() method
Returns a boolean denoting whether or not the specified server exists.
<b>Signature:</b>
```typescript
serverExists(host: string): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| host | string | Hostname of target server. |
<b>Returns:</b>
boolean
True if the specified server exists, and false otherwise.
## Remarks
RAM cost: 0.1 GB