I have a spread of strings with slices that will either be empty or have text in them at any given time. I want to return a spread which has any empty slices removed. I can’t find a dedicated node for this (might be there, just can’t find it) and I have been looking at other examples, but I am new to ForEach, Keep pins, etc, and I am finding it difficult to work this out. If someone has the time to help me with this simple problem I would be super grateful!
You can use the Where
region. It gives you each item and you can return a bool whether you want to keep it or not. You can read it as “The spread ‘where’ this condition is true for the items”. In your case, use the IsNullOrWhitespace and a NOT.
1 Like
there is a node called “Clean” that does exactly that.
1 Like
Thankyou! Really appreciate it