# Combine list

**URL:** <https://forum.dynamobim.com/t/combine-list/27399>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [October 19, 2018, 7:01am UTC](https://forum.dynamobim.com/t/combine-list/27399 "2018-10-19T07:01:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![1065553](https://avatars.discourse-cdn.com/v4/letter/1/a9adbd/32.png) [@1065553](https://forum.dynamobim.com/u/1065553)\
**Post date:** [October 19, 2018, 7:01am UTC](https://forum.dynamobim.com/t/combine-list/27399/1 "2018-10-19T07:01:40Z")

</div>

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.

 ![Udklip](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/4/a4394278229b7d441097066fbea58b70f03d3ca2.png)

Nichlas

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [October 19, 2018, 7:09am UTC](https://forum.dynamobim.com/t/combine-list/27399/2 "2018-10-19T07:09:02Z")

</div>

I would probably just do like so… without using the “string from object” node…  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/c/dccef716ecad024aebe2b54823ada74f7b1d35e9.png)  
If you’re outputting doubles however it would look like this:

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/d/dd68f92ea940c057cfba49ae1f28c59b72b883d7.png)  
And if you want it can be further simplified:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/e/cefd23b66f501a81db68b3900e7fb7345353bc98.png)

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [October 19, 2018, 7:13am UTC](https://forum.dynamobim.com/t/combine-list/27399/3 "2018-10-19T07:13:14Z")

</div>

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:

 ![dec](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/6/060ba049ae92680e85ae90ffb715e5abb8f2ab40.png)

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [October 19, 2018, 7:19am UTC](https://forum.dynamobim.com/t/combine-list/27399/4 "2018-10-19T07:19:13Z")

</div>

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://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/a/7ad8bdae82420846cb8b41db1b2d389913286eca.png)  
 ![removeStringscript](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/2/720341d7b4898a95ffe85d6497a57aee5dcbbb36.png)

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [October 19, 2018, 7:25am UTC](https://forum.dynamobim.com/t/combine-list/27399/5 "2018-10-19T07:25:09Z")

</div>

It does work when put into codeblock… quite curious 😛 Can you answer if this is a bug @jacob.small?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/2/f2c1048309dfc3c3a9dd9a8a7520c4fcfcc1c822.png)

---

<div class="post-metadata">

**Author:** ![1065553](https://avatars.discourse-cdn.com/v4/letter/1/a9adbd/32.png) [@1065553](https://forum.dynamobim.com/u/1065553)\
**Post date:** [October 19, 2018, 7:57am UTC](https://forum.dynamobim.com/t/combine-list/27399/6 "2018-10-19T07:57:46Z")

</div>

Thanks it’s worked. 🙂

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [October 20, 2018, 4:03am UTC](https://forum.dynamobim.com/t/combine-list/27399/7 "2018-10-20T04:03:16Z")

</div>

@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. 😃

---

<div class="post-metadata">

**Author:** ![Jonathan.Olesen](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jonathan.olesen/32/44242_2.png) [@Jonathan.Olesen](https://forum.dynamobim.com/u/Jonathan.Olesen)\
**Post date:** [October 22, 2018, 7:31am UTC](https://forum.dynamobim.com/t/combine-list/27399/8 "2018-10-22T07:31:02Z")

</div>

Hi @jacob.small  
Sorry for the delay, have been away all weekend 🙂  
I’ve submitted the bug on github 🙂  
[https://github.com/DynamoDS/Dynamo/issues/9196](https://github.com/DynamoDS/Dynamo/issues/9196)
