<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to add spaces while concatenating data from 2 lists? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/how-to-add-spaces-while-concatenating-data-from-2-lists/m-p/227934#M45224</link>
    <description>&lt;P&gt;Here's a simple solution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;list1 = {"abc"};
list2 = {"def"};
list3 = {"ghi"};
concat_string = list1[1] || " " || list2[1] || " " || list3[1];
show(concat_string);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result from the log:&lt;/P&gt;
&lt;PRE&gt;concat_string = "abc def ghi";&lt;/PRE&gt;</description>
    <pubDate>Wed, 02 Oct 2019 17:06:35 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2019-10-02T17:06:35Z</dc:date>
    <item>
      <title>how to add spaces while concatenating data from 2 lists?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-add-spaces-while-concatenating-data-from-2-lists/m-p/227870#M45209</link>
      <description>&lt;P&gt;I have 3 lists and each list conatins 1 item. I need to concatenate 3 items to get 1 string. But not been able to get spaces between the 3 words of the string.How can I do this?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 03:21:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-add-spaces-while-concatenating-data-from-2-lists/m-p/227870#M45209</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2019-10-02T03:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to add spaces while concatenating data from 2 lists?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-add-spaces-while-concatenating-data-from-2-lists/m-p/227894#M45215</link>
      <description>&lt;P&gt;I am not sure exactly what you are asking for, but the code below, takes 2 lists and adds a blank entry between the concatenation of the two lists.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a={"one","two"};
b={"three","four"};
c=a|| {" "} || b;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Oct 2019 11:06:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-add-spaces-while-concatenating-data-from-2-lists/m-p/227894#M45215</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-10-02T11:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to add spaces while concatenating data from 2 lists?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-add-spaces-while-concatenating-data-from-2-lists/m-p/227895#M45216</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11834"&gt;@ENTHU&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it would be&amp;nbsp;useful if you gave a bit of&amp;nbsp;context such as a little script of table. otherwise try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;str1 = "one";
str2 = "two";
str3 = "three";
 
comb = Concat Items({str1, str2, str3}, " ");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 11:20:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-add-spaces-while-concatenating-data-from-2-lists/m-p/227895#M45216</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2019-10-02T11:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to add spaces while concatenating data from 2 lists?</title>
      <link>https://community.jmp.com/t5/Discussions/how-to-add-spaces-while-concatenating-data-from-2-lists/m-p/227934#M45224</link>
      <description>&lt;P&gt;Here's a simple solution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;list1 = {"abc"};
list2 = {"def"};
list3 = {"ghi"};
concat_string = list1[1] || " " || list2[1] || " " || list3[1];
show(concat_string);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result from the log:&lt;/P&gt;
&lt;PRE&gt;concat_string = "abc def ghi";&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Oct 2019 17:06:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/how-to-add-spaces-while-concatenating-data-from-2-lists/m-p/227934#M45224</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2019-10-02T17:06:35Z</dc:date>
    </item>
  </channel>
</rss>

