<?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: &amp;quot;If statement&amp;quot; does not work properly when running the whole  script but if I only run the part in question it works well in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/quot-If-statement-quot-does-not-work-properly-when-running-the/m-p/447372#M69421</link>
    <description>&lt;P&gt;I am not finding an error.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1640098567833.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38582i64C4A82CDBE78C06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1640098567833.png" alt="txnelson_0-1640098567833.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You may want to check the&amp;nbsp; data table for duplicate column names.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 14:57:53 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-12-21T14:57:53Z</dc:date>
    <item>
      <title>"If statement" does not work properly when running the whole  script but if I only run the part in question it works well</title>
      <link>https://community.jmp.com/t5/Discussions/quot-If-statement-quot-does-not-work-properly-when-running-the/m-p/447317#M69417</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am note very experienced in scripting and have a question (may be I am missing some basic syntax here?).&lt;/P&gt;&lt;P&gt;I use the following script to create in a data table new columns with an "if statement".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For new column "Headache 1" this works well. For "Fever 1" it does not work. New column is created (but with data type numeric and data model continuous instead of character, nominal and if statement does not work) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interestingly, if I only run in the script editor the part below it works very well (column then is character, nominal and also the values &amp;gt;=38 are transferred to "Yes" properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference column "Converted Temperature" in the if"statement" is numeric, continuous.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what I am doing wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for support !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New Column( "Fever 1",&lt;BR /&gt;Character,&lt;BR /&gt;"Nominal",&lt;BR /&gt;Formula( If( :Converted Temperature &amp;gt;= 38, "Yes", "" ) ), Set Selected );&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:07:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-If-statement-quot-does-not-work-properly-when-running-the/m-p/447317#M69417</guid>
      <dc:creator>MH1</dc:creator>
      <dc:date>2023-06-09T18:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: "If statement" does not work properly when running the whole  script but if I only run the part in question it works well</title>
      <link>https://community.jmp.com/t5/Discussions/quot-If-statement-quot-does-not-work-properly-when-running-the/m-p/447372#M69421</link>
      <description>&lt;P&gt;I am not finding an error.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1640098567833.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38582i64C4A82CDBE78C06/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1640098567833.png" alt="txnelson_0-1640098567833.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You may want to check the&amp;nbsp; data table for duplicate column names.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 14:57:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-If-statement-quot-does-not-work-properly-when-running-the/m-p/447372#M69421</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-12-21T14:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: "If statement" does not work properly when running the whole  script but if I only run the part in question it works well</title>
      <link>https://community.jmp.com/t5/Discussions/quot-If-statement-quot-does-not-work-properly-when-running-the/m-p/447446#M69426</link>
      <description>&lt;P&gt;Thank you Jim. The issue is resolved. I made a mistake in choosing the wrong data model in a later part of the script and now I am using the debug function (my learning today!) Great support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 16:30:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-If-statement-quot-does-not-work-properly-when-running-the/m-p/447446#M69426</guid>
      <dc:creator>MH1</dc:creator>
      <dc:date>2021-12-21T16:30:35Z</dc:date>
    </item>
  </channel>
</rss>

