My survey is a set of questions with the answers being scored 1-5. There are breaks between each section to show the score for previous section. The score is just an average of the responses which is easy, but I do not want to show the score as a number but instead a label. I'm hoping to set an embedded data field for each section with the label based on the score using an if statement in Javascript but can't get it to work.
Here's an example of what I'm trying so far.
if("${e://Field/Score}"<=2) {Qualtrics.SurveyEngine.setEmbeddedData("Label","Average")}
else if("${e://Field/Score}"<=3){Qualtrics.SurveyEngine.setEmbeddedData("Label", "Good")}
else if("${e://Field/Score}"<=4){Qualtrics.SurveyEngine.setEmbeddedData("Label", "Great")}
else if("${e://Field/Score}"<=5){Qualtrics.SurveyEngine.setEmbeddedData("Label", "Perfect")}