How to extract text as different value/bundle

I want to split the labels in three different value so that I can map/use them individually. But I don’t how how to do this. Can you please help me

1 Like

Hey there,

that’s a comma separated list right? The function you are looking for is literary called split(), put the input as the first argument and comma as the second argument and it will give you an array with the separate items. Then you can use their order index to get the individual ones.

Yes, these are comma-separated, but I want to split them. So that I can get three different labels and in the blogger module, I can map them in the field - Label1, Label2 and Label3. If I put these values in Label1, only the blogger thinks it is one label, not three different labels. So, I need to map them. Please let me know how to do it.

Yes so you use split():

{{split(6.Choices.Message.Content;,)}}

It should look something like this, you can select the function from the list to make sure you have it and its not just a text string.

Then if its always three labels, you can use the orderindex to get them from the resulting array. For example:

{{get(split(6.Choices.Message.Content;,);1)}}

to get the first label.

Welcome to the Make community!

You might have to use this with ifempty too along with the split and get functions.

Hope this helps! If you are still having trouble, please provide more details.

@samliew