I am storing some data in a string as a comma separated list and using the Split function to create an array in Wappler when the data is read.
When the string's value is an empty string, the split function is creating an array with one empty element. In this condition I would expect it to create an empty array.
Question 1
Is this an unfortunate feature of Split, or a bug?
Question 2
If I cannot change this behaviour, then I need to detect if the string value is "" or of length 0 and decide whether to reset the contents of my array or fill it with the split values... and I'm not very clear on how to do that!
As George explained you already this is available in the UI of the Array component dynamic events... so please use the UI and don't try to guess the code and edit everything in code view as this won't really save you much time, as it might look.