transform dict values in a list

houz92's icon

fHi all,

I'm having troubles trying to transform in a list the output I get from the 2nd outlet of the "dict" object.
I've a six numbers output but if I use the zl.nth object to identify and separate the single numbers, I still get just one element of the list, the 1st one, composed by the six numbers altogether.

It's seems that the space between the single numbers are separated by pressing return instead of pressing the spacebar.

Any ideas to change that? Thanks in advance

this is the wrong formatting

this is the message inside the dict object and that I get from max url

if I press on the message like this

I just get that the message is one element, so only the 1st zl.nth works

if I change formatting, just opening the message and change also only one space between any of the numbers

after i get the correct working from zl.nth

are separated by pressing return and not just with a space made pressing once the spacebar.

tyler mazaika's icon

In your Dict, the value of “body” is a single string, not an array or list. It’s one string even though it has whitespace (newline) characters in it. You need to split the string up. You could maybe try [regexp] object, or process with [atoi] and friends.

houz92's icon

Hi Tyler,

I've changed the output of the single string so it comes out differently from the [dict] object.
After that, put a [fromsymbol] has been enough.

still many thanks,

Marco