<?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: Can an IF formula use boolean character filtering? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Can-an-IF-formula-use-boolean-character-filtering/m-p/829542#M101171</link>
    <description>&lt;P&gt;another option: &lt;FONT face="courier new,courier"&gt;Match&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "generation",
	Formula( Match( Word( 2, :Column 1, "" ),
"3", 1, 
"5", 2, 
"7", 3 ) )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 28 Jan 2025 21:18:55 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-01-28T21:18:55Z</dc:date>
    <item>
      <title>Can an IF formula use boolean character filtering?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-an-IF-formula-use-boolean-character-filtering/m-p/829524#M101166</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run a column creation formula in JMP and I can't figure out how to get the system to perform the function I'm wanting.&lt;BR /&gt;&lt;BR /&gt;Specifically, there is a column of Serial Numbers of six characters.&amp;nbsp; The first character is always an "S" (for serial number).&amp;nbsp; The next 5 characters will always be a sequence of five numbers that begins either with a 7, a 5, or a 0 (representing three different product generations).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What I'd like to do is make a formula that does an "IF" function that says "IF (VAR) = S7* THEN "3"" ... which would look at the serial number column and see if it started with an S7 then it would set the new column's value to 3 (3rd generation) and so on with generation 2 and generation 1.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is this possible with the JMP formula logic?&amp;nbsp; There's a ton of options but its a bit complicated figuring them all out.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:26:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-an-IF-formula-use-boolean-character-filtering/m-p/829524#M101166</guid>
      <dc:creator>NathanFisk</dc:creator>
      <dc:date>2025-01-28T17:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can an IF formula use boolean character filtering?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-an-IF-formula-use-boolean-character-filtering/m-p/829526#M101167</link>
      <description>&lt;P&gt;Many options for this, if-elseif most simple one&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	Starts With(:col, "S7"), "3"
	, Starts With(:col, "S3"), "1"
	// and so on
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you can also chain the if-statements if necessary or use IsMissing(Regex()) for more complicated pattern comparisons. If you can provide example data we can provide better examples (add wanted result column if possible).&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 17:30:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-an-IF-formula-use-boolean-character-filtering/m-p/829526#M101167</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-28T17:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can an IF formula use boolean character filtering?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-an-IF-formula-use-boolean-character-filtering/m-p/829542#M101171</link>
      <description>&lt;P&gt;another option: &lt;FONT face="courier new,courier"&gt;Match&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "generation",
	Formula( Match( Word( 2, :Column 1, "" ),
"3", 1, 
"5", 2, 
"7", 3 ) )
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 Jan 2025 21:18:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-an-IF-formula-use-boolean-character-filtering/m-p/829542#M101171</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-01-28T21:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can an IF formula use boolean character filtering?</title>
      <link>https://community.jmp.com/t5/Discussions/Can-an-IF-formula-use-boolean-character-filtering/m-p/829606#M101185</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 13:18:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Can-an-IF-formula-use-boolean-character-filtering/m-p/829606#M101185</guid>
      <dc:creator>NashTaylor</dc:creator>
      <dc:date>2025-01-29T13:18:25Z</dc:date>
    </item>
  </channel>
</rss>

