How do I set a condition for a dropdown box?