# show_else

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/prelude/function-show_else/

**function** · [`ferroui-view`](/docs/0.5.0/api/ferroui-view/) · v0.5.0

```rust
fn show_else<E: IntoElement, O: IntoElement>(when: impl Fn() -> bool + 'static, then: impl Fn() -> E + 'static, otherwise: impl Fn() -> O + 'static) -> crate::element::Element
```

The children of `then` while `when` is true, those of `otherwise`
otherwise.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/control_flow.rs#L59)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
