This amazingly useful code that Tom posted (slightly modified now) works perfectly:
var selectedRecode = this.getChoiceRecodeValue(this.getSelectedChoices());
var c = (selectedRecode >= "5") ? "Y" : "N";
Qualtrics.SurveyEngine.setEmbeddedData("Reduce alcohol flag", c);
I have changed the selectedRecode from == to >=5 in order to include a range and this works fine. What I would like help with is how to allow the selectedRecode to be a number of different values such as 3, 4 and 9 as an example?