I have a basic script to switch border color given an integer value change. I’d like to add a feature where if a certain event occurs in the system, I can make the border color blink. This would need to occur only while the variable is equal to 1 and the event occurs. Script would otherwise remain normal where values = solid colors.
toBorder(
"line;" +
switch(
{[default]PLC/INTERNAL/OVERVIEW/STARTUP TREE/INIT_STARTUP ROUGHING PRESSURE},
0, 1, 2, 3,
"0,0,0,255", // black
"255,153,0,255", // yellow
"0,204,51,255", // green
"255,0,0,255", // red
"0,0,0,255" // fallback: black
) +
";2"
)