<?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: Conditional transformations in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600408#M80384</link>
    <description>&lt;P&gt;Could you please clarify your statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"&lt;SPAN&gt;If column has the following text: XYZ, then carry out this formula, else do nothing."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Are you looking for XYZ being found in the column name, or in the any of the data values found in the column?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2023 14:27:29 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2023-02-13T14:27:29Z</dc:date>
    <item>
      <title>Conditional transformations</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600306#M80380</link>
      <description>&lt;P&gt;I have a somewhat strange need, though I think it might actually be possible to achieve even without JSL. What I want is to transform certain columns based on a column property, specifically text. "If column has the following text: XYZ, then carry out this formula, else do nothing." I know how to do "if/then" formulas but is there a scripting syntax to only modify columns with certain properties? I have many columns, or else I'd simply do it manually!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:36:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600306#M80380</guid>
      <dc:creator>abmayfield</dc:creator>
      <dc:date>2023-06-08T16:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional transformations</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600408#M80384</link>
      <description>&lt;P&gt;Could you please clarify your statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"&lt;SPAN&gt;If column has the following text: XYZ, then carry out this formula, else do nothing."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Are you looking for XYZ being found in the column name, or in the any of the data values found in the column?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 14:27:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600408#M80384</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-02-13T14:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional transformations</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600457#M80386</link>
      <description>Thanks. Should have clarified. I am referring to the text in the column name rather than the actual data in the table’s cells. So: “if column name includes xyz, then do this transformation.”</description>
      <pubDate>Mon, 13 Feb 2023 14:57:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600457#M80386</guid>
      <dc:creator>abmayfield</dc:creator>
      <dc:date>2023-02-13T14:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional transformations</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600472#M80389</link>
      <description>&lt;P&gt;Here is the general structure of what you need to do....&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=current data table();
colNames = dt &amp;lt;&amp;lt; get column names(string);

for each({Name}, colNames,
	if(contains(Name,"nox"),
		for each row(
			column(name)[row()] = ???????????;  // your formula here
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Feb 2023 15:32:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600472#M80389</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-02-13T15:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional transformations</title>
      <link>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600492#M80393</link>
      <description>&lt;P&gt;Perfect! Thanks so much. I knew this functionality must exist!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 16:35:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Conditional-transformations/m-p/600492#M80393</guid>
      <dc:creator>abmayfield</dc:creator>
      <dc:date>2023-02-13T16:35:31Z</dc:date>
    </item>
  </channel>
</rss>

