You can use the ternary operator to perform single line if-then-else logic expressions.

user.enabled ? 'Active' : 'Inactive'