<?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: Comparing Names of column from two different data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Comparing-Names-of-column-from-two-different-data-table/m-p/52022#M29523</link>
    <description>&lt;P&gt;I am not totally sure of the issue, without seeing the code, but I am guessing that you are running into an issue where you are ending up comparing a list to a string.&amp;nbsp; {"x"} is a list.&amp;nbsp; If you want to compare it to a string, you need to use it's subscript......&lt;/P&gt;
&lt;P&gt;a={"x"};&lt;/P&gt;
&lt;P&gt;b="x";&lt;/P&gt;
&lt;P&gt;show(a==b);&lt;/P&gt;
&lt;P&gt;show( a[1]==b);&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2018 22:31:32 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-02-23T22:31:32Z</dc:date>
    <item>
      <title>Comparing Names of column from two different data table</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-Names-of-column-from-two-different-data-table/m-p/52020#M29521</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am writing a script where user will select&amp;nbsp; particular column name from one data table using panel box. Then selected column will be compared against column name from a different table and select the column when it matches.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am facing a problem related to {"x"}. When i am selecting column from panel box and storing in variable, it is getting stored as selected_cols= {"BIN"}. Now when i am comparing it against column names from 2nd data table, result is giving no column matches even though 2nd table has BIN column . When i checked when comparing its comparing {"BIN"} against BIN and giving no matching, I even tried putting char (selected_cols) but it makes {"BIN"} to&amp;nbsp;"{\!"BIN\!"}".&lt;/P&gt;&lt;P&gt;Please help in getting this issue resolved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 22:16:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-Names-of-column-from-two-different-data-table/m-p/52020#M29521</guid>
      <dc:creator>RK1</dc:creator>
      <dc:date>2018-02-23T22:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Names of column from two different data table</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-Names-of-column-from-two-different-data-table/m-p/52022#M29523</link>
      <description>&lt;P&gt;I am not totally sure of the issue, without seeing the code, but I am guessing that you are running into an issue where you are ending up comparing a list to a string.&amp;nbsp; {"x"} is a list.&amp;nbsp; If you want to compare it to a string, you need to use it's subscript......&lt;/P&gt;
&lt;P&gt;a={"x"};&lt;/P&gt;
&lt;P&gt;b="x";&lt;/P&gt;
&lt;P&gt;show(a==b);&lt;/P&gt;
&lt;P&gt;show( a[1]==b);&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 22:31:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-Names-of-column-from-two-different-data-table/m-p/52022#M29523</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-02-23T22:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Names of column from two different data table</title>
      <link>https://community.jmp.com/t5/Discussions/Comparing-Names-of-column-from-two-different-data-table/m-p/52026#M29527</link>
      <description>&lt;P&gt;Thanks for quick help. it worked. You were right i was comparing list with a string that's why not getting result.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2018 00:52:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Comparing-Names-of-column-from-two-different-data-table/m-p/52026#M29527</guid>
      <dc:creator>RK1</dc:creator>
      <dc:date>2018-02-24T00:52:52Z</dc:date>
    </item>
  </channel>
</rss>

