Hey.
I want to make a new list.
First of all, the decimals from the “String from object” node, i want them gone.
I tried so split string, but that dosent work.
Second, i want to combine two lists by index. With the lists of names i left bottom corner.
Third, i want a text between the number and the name.
The result should be something like “1 stk. af Badekar” from both list index 0.
Nichlas
I would probably just do like so… without using the “string from object” node…
![image](https://global.discourse-cdn.com/business6/uploads/dynamobim/original/3X/d/c/dccef716ecad024aebe2b54823ada74f7b1d35e9.png)
If you’re outputting doubles however it would look like this:
And if you want it can be further simplified:
The reason your string split isn’t working is that the separater0 input is supposed to be what character you want to separate by, in this case the “,”. See below:
There was something I was curious with String.Remove. It’s help text says that count by default will remove everything after the index but the node will not function unless a number is put in.
![removeString](https://global.discourse-cdn.com/business6/uploads/dynamobim/original/3X/7/a/7ad8bdae82420846cb8b41db1b2d389913286eca.png)
![removeStringscript](https://global.discourse-cdn.com/business6/uploads/dynamobim/original/3X/7/2/720341d7b4898a95ffe85d6497a57aee5dcbbb36.png)
It does work when put into codeblock… quite curious
Can you answer if this is a bug @jacob.small?
@Jonathan.Olesen - Definitely buggy as the design script method clears the rest of the characters while the node version doesn’t. Feel free to make a GitHub bug report. If I don’t see one before I finish my current task (sometime Sunday evening) I’ll pick it up.
Good catch. ![:smiley: :smiley:](https://emoji.discourse-cdn.com/twitter/smiley.png?v=12)
Hi @jacob.small
Sorry for the delay, have been away all weekend ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=6)
I’ve submitted the bug on github ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=6)
https://github.com/DynamoDS/Dynamo/issues/9196
1 Like