I'm look to test a variable that is determined by a users input against a list of options, if any of those options are equal move on to the next if question. If the second users input is also equal against those same list of options display text, else move on to compare against other lists of options.
var nowWeather =
document.getElementById("currentWeather").value;
var todayWeather =
document.getElementById("weatherToday").value;
if (nowWeather == "hot"
|| nowWeather == "sunny"
|| nowWeather == "warm"){
if (todayWeather == "hot"
|| todayWeather == "sunny"
|| todayWeather == "warm") {
text = "You should wear sandals today!";
}
else if (todayWeather == "wet"
|| todayWeather == "rain"
|| todayWeather == "rainy") {
text = "You should wear goloshes today!";
}
else if (todayWeather == "cold"
|| todayWeather == "snowy"
|| todayWeather == "snow") {
text = "You should bring boots today!";
}
else {
text = "You should just wear some shoes today";
}
}