# port_check_available

Check if a port is available for binding on localhost.

```rhai
port_check_available(port: i64) -> bool
```

## Examples

```rhai
if port_check_available(8080)? {
    print("Port 8080 is available");
} else {
    print("Port 8080 is in use");
}
```

```rhai
// Find an available port
let port = 3000;
while !port_check_available(port)? {
    port += 1;
}
print(`Using port ${port}`);
```
