Hi, I adapted the answer from Convert 1-12 into month number for days of the week.
{
"Name": "DayName",
"CreationDate": "2022-02-22",
"Commands": [
{
"Command": "store",
"Target": "7",
"Value": "d",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "var days = [ \"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\" ]; var selectedDayName = days[${d} -1]; return selectedDayName;",
"Value": "d2",
"Description": "We use d-1 because arrays start at 0. 7 minus 1 equals 6, or six days from the current day"
},
{
"Command": "echo",
"Target": "The day is ${d2}",
"Value": "green",
"Description": ""
}
]
}