Different ways of reading this problem

but if your user likes Pasta and not Pizza they get brussel sprouts anyway. Instead it should be only for if they don’t like either one


a switch statement is not the best, because you have two different variables to check. It can be made to work but in an ugly way, so I would not use this method

consider instead using an if/else if/else chain, where each one of those is one of your steps 2-3-4


If you wanted to ask what the user likes to it you can ask the user for input, so that they can answer that and the code execute. But you would also need more than a console for that, like an actual web page


I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').