Using Wix Code with user input elements

I have a few drop down menus on my webpage, and I want to take the respective input of the user to determine the next course of action. For example, if my options are apple and orange, and they choose apple, I want the site to be redirected to a page different than the one redirected if they chose orange. How can I use wix code to analyze user input?