Convert multi-line statement into a ternary for clarification