If statement help

can anyone tell me why this if statement doesn’t work?

i have a comboBox that i need to associate different email addresses with the different selections (the “selections” are the labels of the comboBox - not the data… the data fields for the comboBox are blank). right now, as written it returns “email2” no matter which i pick.

what am i missing?


if (comboBoxName.getValue() == (("selection1") || ("selection2")  || ("selection3") || ("selection4") || ("selection5") || ("selection6") || ("selection7") || ("selection8"))) {
		var comboSelectionEmail = "email1";
	} else {
		var comboSelectionEmail = "email2";
	}

also, is there an easier way to do this than by using the if statement?

thanks!