I have no coding background so need some help or resources for understanding how to write this please.
I want to create a variable deviceList and another deviceName (to use shorter names when sending notifications) and save active devices to another list activeDevice but call the shorter names (deviceName) vs device name (deviceList)
Example
device deviceList AAA, BBB, CCC
device deviceName A,B,C
string activeDevices (no value set)
I can not figure out how to write this.
I tried
IF trigger happens
for each $device in {deviceList}
set variable {activeDevices} = {activeDevices},{deviceName} + $devices
But that didn’t work. I found a lot of examples but no actual explanations of how to write this. Any suggestions or links to learn from (for someone with minimal coding knowledge) is much appreciated!