use a ternary statement