In Ruby you can avoid this by doing

```ruby
notification = if condition
  value_a
else
  value_b
end