running ternarie and logical operator