Also, see :help expression-syntax about using the if `? then : else`
operator:
You should always put a space before the ':', otherwise it can be
mistaken for use in a variable such as "a:1".
So, do that.