This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tutorials:faq:main [2019/11/19 15:50] miconda |
tutorials:faq:main [2019/11/19 15:52] (current) miconda |
||
---|---|---|---|
Line 516: | Line 516: | ||
??? How to iterate through the items in a comma separated string? | ??? How to iterate through the items in a comma separated string? | ||
- | !!! If you have a variable holding a string like "a,b,c,d" and want to get each character separately, you have to use a WHILE loop and {s.select,index,separator} transformation. If there is no value at the given index, then the transformation will return $null, thus you have to use a variable as index, incrementing it until you get a $null. | + | !!! If you have a variable holding a string like "a,b,c,d" and want to get each character separately, you have to use a WHILE loop with {s.count,separator} and {s.select,index,separator} transformations. |
Here is an example: | Here is an example: |