cleanup, docs
This commit is contained in:
@@ -17,6 +17,5 @@ Parses a trimmed, case-insensitive boolean string.
|
||||
|
||||
Truthy tokens are `"1"`, `"true"`, `"yes"`, and `"on"`. Falsey tokens are `"0"`, `"false"`, `"no"`, and `"off"`. Empty or unrecognized strings return the fallback.
|
||||
|
||||
```uce
|
||||
bool enabled = to_bool(context.server->config["FEATURE_ENABLED"], true);
|
||||
```
|
||||
:example
|
||||
print(to_bool("yes") ? "true\n" : "false\n");
|
||||
|
||||
Reference in New Issue
Block a user