<?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 Check if a value belongs to a list of value in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Check-if-a-value-belongs-to-a-list-of-value/m-p/487039#M73084</link>
    <description>&lt;P&gt;In a condition, I want to check if a value belongs to a list composed of several values. What is the simplest syntax ?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:59:17 GMT</pubDate>
    <dc:creator>OrderedColt522</dc:creator>
    <dc:date>2023-06-09T16:59:17Z</dc:date>
    <item>
      <title>Check if a value belongs to a list of value</title>
      <link>https://community.jmp.com/t5/Discussions/Check-if-a-value-belongs-to-a-list-of-value/m-p/487039#M73084</link>
      <description>&lt;P&gt;In a condition, I want to check if a value belongs to a list composed of several values. What is the simplest syntax ?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:59:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Check-if-a-value-belongs-to-a-list-of-value/m-p/487039#M73084</guid>
      <dc:creator>OrderedColt522</dc:creator>
      <dc:date>2023-06-09T16:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a value belongs to a list of value</title>
      <link>https://community.jmp.com/t5/Discussions/Check-if-a-value-belongs-to-a-list-of-value/m-p/487077#M73086</link>
      <description>&lt;P&gt;Usually &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/character-functions-2.shtml?os=win&amp;amp;source=application#ww2467451" target="_blank" rel="noopener"&gt;Contains()&lt;/A&gt; is enough. Sometimes &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/character-functions-2.shtml?os=win&amp;amp;source=application#ww6166335" target="_blank" rel="noopener"&gt;Contains Item()&lt;/A&gt; . See scripting index for more examples&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
name_list={"Katie", "Louise", "Jane", "Jaclyn"};
r = Contains(name_list, "Louise");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 May 2022 09:51:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Check-if-a-value-belongs-to-a-list-of-value/m-p/487077#M73086</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-05-16T09:51:55Z</dc:date>
    </item>
  </channel>
</rss>

