The conversation between human and AI assistant.
Can you write a drop down list option into an IF statement?
Yes, please. That would be helpful.
Sure thing. Here's an example code:

var dropDownList = document.getElementById("my-dropdown-list");

dropDownList.addEventListener("change", function() {
  if (dropDownList.value == "option-1") {
    // Execute code for option 1
  } else if (dropDownList.value == "option-2") {
    // Execute code for option 2
  } else {
    // Execute code for any other option
  }
});