Else, if and elseif commands, with ternary operator