{ "True case" }
+ } +}; +``` + +There may also be an `else` case: + +```rust +use yew::html; +let some_condition = true; + +html! { + if false { +{ "True case" }
+ } else { +{ "False case" }
+ } +}; +``` + +:::note +`if let` statements can also be used in the same way. +:::