# which

Check if a command exists in PATH. Returns path or unit.

```rhai
which(cmd: &str) -> Dynamic
```

## Examples

```rhai
let go_path = which("go");
if go_path != () {
    print(`Go found at: ${go_path}`);
}
```

```rhai
if which("docker") == () {
    print("Docker not installed");
    package_install("docker")?;
}
```
