Handling Complex Decisions The switch and multiple if-then-else statements are basically used to execute different sets of statements depending on a choice.