# if-else returns a value

* This expersssion must have an `else` part!
* The last statement in both the `if` and the `else` part has no `;` at the end and thus they are called `expressions` and not `statements`.

{% embed include file="src/examples/booleans/if-returns-value/src/main.rs" %}


