<?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: Remove word from list in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Remove-word-from-list/m-p/216665#M43284</link>
    <description>&lt;P&gt;Here is how you want to handle your issue.&amp;nbsp; By working backwards down the list, you do not get the reference to the list incorrect because of deleting members of the list.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;unique = {" BGG", " BSG", "None"};
For( i = N Items( unique ), i &amp;gt;= 1, i--,
	If( unique[i] == "None",
		Remove From( unique, i, 1 ), 

	)
);
Show( unique );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Jul 2019 21:41:03 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-07-08T21:41:03Z</dc:date>
    <item>
      <title>Remove word from list</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-word-from-list/m-p/216650#M43281</link>
      <description>&lt;P&gt;Hi! I am trying to remove the word "none" from my lists ( which is variable according to the data input), but after running the script I see no changes in my output. Do you guys have any suggestion on how I can improve my code?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;unique= Associative Array(Data) &amp;lt;&amp;lt; Get Keys;
show(unique); // output- unique= {" BGG", " BSG", "None"}
       Number= nitems(unique);
	for( i= 1, i &amp;gt;= Number, i++,
		if (unique[i]== "None",
		    remove from(unique,unique[i]);,
		);
	);
	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 21:21:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-word-from-list/m-p/216650#M43281</guid>
      <dc:creator>dg1</dc:creator>
      <dc:date>2019-07-08T21:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Remove word from list</title>
      <link>https://community.jmp.com/t5/Discussions/Remove-word-from-list/m-p/216665#M43284</link>
      <description>&lt;P&gt;Here is how you want to handle your issue.&amp;nbsp; By working backwards down the list, you do not get the reference to the list incorrect because of deleting members of the list.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;unique = {" BGG", " BSG", "None"};
For( i = N Items( unique ), i &amp;gt;= 1, i--,
	If( unique[i] == "None",
		Remove From( unique, i, 1 ), 

	)
);
Show( unique );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jul 2019 21:41:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Remove-word-from-list/m-p/216665#M43284</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-07-08T21:41:03Z</dc:date>
    </item>
  </channel>
</rss>

