Problem with ternary operator

thanks