I have a list of lists looking something like this.
[["12-20-2013", "0", 0.00", "25", "", 34"], ["10-23-2000", "25", 15", "", "", "0"]]
Might anyone know how to replace the empty spaces "" with "?"
I have a list of lists looking something like this.
[["12-20-2013", "0", 0.00", "25", "", 34"], ["10-23-2000", "25", 15", "", "", "0"]]
Might anyone know how to replace the empty spaces "" with "?"
Hi @aiap11 ,
Can you please tell me how will the snippet look like? What is the source of this list and how are you planning to use it?
Also, can you please tell us how should the list look like after replacing?
Given the list you have, you could use something like this:
(note, I added some "'s that were missing in your example)
{input=[["12-20-2013", "0", "0.00", "25", "", "34"], ["10-23-2000", "25", "15", "", "", "0"]]}
{=map(input, (row) -> map(row, (item) -> "?" if item = "" else item))}
I hope this helps!
Thank you!