0
Separating List into Objects
Hello,
I have a list of items that are separated by commas:
Objects = "Red, Blue, Green"
I would like to convert them to objects, and loop through each object to see if a condition matches.
Ex.
If Objects = "Red" then true
Except, instead of a bunch of if/then statements there has to be a better way. Any suggestions?
4 replies
-
said:
I would like to convert them to objects,If you are manually typing out the string, you can make things easier by just putting the items into an array. Something like:
let Objects := ["Red", "Blue", "Green"]
If you are using a text field then you will need to convert a string into an array. To do this, you will need the split() command. It will look something like:
split(fieldname,", ");
Notice there is a space after the comma as it has to match the exact text in your string.
said:
and loop through each object to see if a condition matches.Can you be more specific about what you want here?
Content aside
- 4 mths agoLast active
- 4Replies
- 43Views
-
3
Following