How to set up conditions based on the star rating field?