Use braces for the then part, or at least an indented line.