$visitor->ternary()
$visitor->ternary() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
$visitor->ternary(mixed $condition, Closure|null $true, Closure $false): mixed
Parameters
| Name | Type | Default |
|---|---|---|
| $conditionrequired | mixed |
no default value |
| $true | Closureornull |
no default value |
| $falserequired | Closure |
no default value |
Return type
mixed