LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remove empty string in array

I have two seperate arrays, one holds every values and the other array only holds false values. But if I index both with the same index, I have empty string in my second array. How do I remove these empty strings? Or is there another way for me to index the second array? The second array is in the same loop as the first array, that's why I used the same index. I tried to use delete from array if the string is empty, but that doesnt help.
0 Kudos
Message 1 of 3
(2,998 Views)
Don't use auto indexing in this array. Instead, initialize a blank array in a shift register and use the Build Array function with the array from the shift register as the first input and the value to be written as the second input. In the case that the value is not false just pass the array to the next iteration without change.
Message 2 of 3
(2,998 Views)
Thanks, it works!!! 🙂
0 Kudos
Message 3 of 3
(2,998 Views)