<?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: If-function else-clause not recognizing missing values in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/If-function-else-clause-not-recognizing-missing-values/m-p/18377#M16760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I came to the same conclusion upon more consideration. That "missing" is not the same as "X is equal to five" in your example. Or whatever else may be placed in the "else" clause.&lt;/P&gt;&lt;P&gt;Thank you &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_emote jive_macro" src="https://community.jmp.com/7.0.4.3b79b96/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 08:30:05 GMT</pubDate>
    <dc:creator>JesperJohansen</dc:creator>
    <dc:date>2016-05-13T08:30:05Z</dc:date>
    <item>
      <title>If-function else-clause not recognizing missing values</title>
      <link>https://community.jmp.com/t5/Discussions/If-function-else-clause-not-recognizing-missing-values/m-p/18374#M16757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I add an If-function&amp;nbsp; to a column, the else-clause does not recognize empty values (see attached sheet). this means that the function:&lt;/P&gt;&lt;P&gt;If( :Column 2 == 1, 1,&lt;/P&gt;&lt;P&gt;2 )&lt;/P&gt;&lt;P&gt;leaves missing values if &lt;SPAN style="font-size: 13.3333px;"&gt;Column 2 contains missing values. I can fix this by changing the function to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If(&amp;nbsp; :Column 2 == 1, 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is Missing( :Column 2 ), 2)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;If(&amp;nbsp; :Column 2 == 1, 1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Is Missing( :Column 2 ), 2,&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;but why is this necessary? Is it a bug or a deliberate "feature"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 07:12:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-function-else-clause-not-recognizing-missing-values/m-p/18374#M16757</guid>
      <dc:creator>JesperJohansen</dc:creator>
      <dc:date>2016-05-10T07:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: If-function else-clause not recognizing missing values</title>
      <link>https://community.jmp.com/t5/Discussions/If-function-else-clause-not-recognizing-missing-values/m-p/18375#M16758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This behavior is intentional and is associated with the propagation of missing values. Your can read a bit about it in the &lt;A href="http://www.jmp.com/support/help/Conditional_Functions_2.shtml"&gt;Conditional Functions&lt;/A&gt; section of the JMP Scripting Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should always include a check for missing values in your conditionals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 20:58:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-function-else-clause-not-recognizing-missing-values/m-p/18375#M16758</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2016-05-11T20:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: If-function else-clause not recognizing missing values</title>
      <link>https://community.jmp.com/t5/Discussions/If-function-else-clause-not-recognizing-missing-values/m-p/18376#M16759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to understand why it behaves this way, run this code in your head (and then try it in JMP):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_macro_quote jive_text_macro" modifiedtitle="true"&gt;&lt;P style="margin: 0px; line-height: normal; font-family: Menlo;"&gt;x &lt;SPAN style="color: #011993;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; line-height: normal; font-family: Menlo; color: #942193;"&gt;&lt;SPAN style="color: #032ce4;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; x &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;Show&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"X is less than five"&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; line-height: normal; font-family: Menlo; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #009193;"&gt;&lt;STRONG&gt;5&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;Show&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;"X is greater than five"&lt;SPAN style="color: #000000;"&gt; &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px; line-height: normal; font-family: Menlo; color: #942193;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #032ce4;"&gt;Show&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;"X is equal to five"&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0px; line-height: normal; font-family: Menlo;"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;SPAN style="color: #011993;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did you think it would do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 21:03:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-function-else-clause-not-recognizing-missing-values/m-p/18376#M16759</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2016-05-11T21:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: If-function else-clause not recognizing missing values</title>
      <link>https://community.jmp.com/t5/Discussions/If-function-else-clause-not-recognizing-missing-values/m-p/18377#M16760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I came to the same conclusion upon more consideration. That "missing" is not the same as "X is equal to five" in your example. Or whatever else may be placed in the "else" clause.&lt;/P&gt;&lt;P&gt;Thank you &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_emote jive_macro" src="https://community.jmp.com/7.0.4.3b79b96/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 08:30:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/If-function-else-clause-not-recognizing-missing-values/m-p/18377#M16760</guid>
      <dc:creator>JesperJohansen</dc:creator>
      <dc:date>2016-05-13T08:30:05Z</dc:date>
    </item>
  </channel>
</rss>

