Why assign if/else to a variable?

In Elixir Succinctly I read:

Since everything in Elixir is an expression, and if is no exception, the if…else construct returns a value that we can assign to a variable for later use:

a = if test_conditional do
# ...

What are some practical usages of this?