I need to create a flow that rotates between 4 sellers, when the customer chooses to be the first time in the chat and that the seller's name is not repeated in different accesses. so when the last of the 4 is displayed, the first one returns to be displayed and so on. I am not able to make the JS display in the text block. {{ if ({{lastDisplayedName}} === {{names}}[{{names}}.length - 1]) { {{lastDisplayedName}} = {{names}}[0]; } else { {{lastDisplayedName}} = {{names}}[{{names}}.indexOf({{lastDisplayedName}}) + 1]; } return {{lastDisplayedName}}; }}