How to split substrings into variables

Hi all, I’ve searched the forums, but couldn’t find the exact solution I need, and I also can’t find it from a lot of tutorials and articles here.

I have a string of text that looks like “item 1 | item 2 | item 3” and I am trying to convert each of those items into variables. I was able to use the set variables module with the split function to convert them into separate sub strings, but they don’t appear as unique variable that I can select in my next module.

JSON is attached. Would love your help!

Blueprint (1).json (42.8 KB)

Depends on how use the split strings. Do you need to iterate over them? The split function separates the string into an array. You could then use the iterate function to access each string. Alternatively, you could use the index of the array and access them individually.