Hi @ahmadnasriya ,
Wow I have plugged the code in and adjusted it for a couple of “cloud” multi-state boxes and they work perfectly fine! Thank-you so much! It is so much simpler coding it that way!
As I do not know JavaScript coding and being a first-timer, I have been reading and trying to understand the logic of the array function on JavaScript using this website: https://developer.mozilla . org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
(For others who want to know more functions on JavaScript)
In analysing the code and getting it through my head, I see JavaScript is so cool, allowing a function to be inside a function! ![]()
Once again, thanks!