# CommandResult.success

Check if a command executed successfully.

```rhai
result.success -> bool
```

Returns `true` if the command exited with code 0, `false` otherwise.

## Example

```rhai
let result = execute("test -f /tmp/config.txt")
    .ignore_error()
    .run()?;
if result.success {
    print("Config file exists");
} else {
    print("Config file not found");
}
```
