# which

Check if a command exists in PATH.

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

## Examples

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

```rhai
if which("docker") == () {
    throw "Docker not installed";
}
```
