This of course only solves half your problem since you have more code after this and the value from the expression we just created must be used or discarded. So you'd need to put all of that into either the `if` or the `else` branch and make sure that they also evaluates to a value. This is one of the strengths of implicit return. If you restructure your code like this you are guaranteed that each path actually returns something. Another option would of course be to create a "result" variable and then end the template with a single line that just reads `result`. This would mean that you keep assigning to this variable and rely on implicit return from the template only to return the value of the `result` variable. Not the prettiest, but it works.