<?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: dt: image - missing? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/dt-image-missing/m-p/742373#M92238</link>
    <description>&lt;P&gt;It can be a mess in JMP to check if objects are empty, missing, null, none, have no items and you will very quickly end in a situation which requires multiple checks to avoid different types of errors. I have created wish list item to have some sort of universal type of function Is None? to check if objects/variables/... are empty/missing&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Add function which can be universally used to check if object/variable is empty/missing" uid="612938" url="https://community.jmp.com/t5/JMP-Wish-List/Add-function-which-can-be-universally-used-to-check-if-object/m-p/612938#U612938" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 31 Mar 2024 15:45:37 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-03-31T15:45:37Z</dc:date>
    <item>
      <title>dt: image - missing?</title>
      <link>https://community.jmp.com/t5/Discussions/dt-image-missing/m-p/742270#M92229</link>
      <description>&lt;P&gt;What is the correct way to check if an image in a data table is missing?&lt;/P&gt;&lt;P&gt;... and why is there a difference between the column formula and the JSL question&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;is missing(:pet[5])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
dt[[4],"pet"]=.;

New Column( "is missing",Formula( Is Missing( :pet ) ));

New Column( "is empty",	Formula( Is Empty( :pet ) ));

New Column( "is number",Formula( Is Number( :pet ) ));

New Column( "is expr",Formula( Is expr( :pet ) ));

write("is missing:");
Show(is missing(:pet[4]));
Try(Show(is missing(:pet[5])), Print("is missing: error with existing image"));

write("\!n\!nis empty");
Show(is empty(:pet[4]));
Show(is empty(:pet[5]));

write("\!n\!nis number");
Show(is number(:pet[4]));
Show(is number(:pet[5]));

write("\!n\!nis expr");
Show(is expr(:pet[4]));
Show(is expr(:pet[5]));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 31 Mar 2024 14:41:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/dt-image-missing/m-p/742270#M92229</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-03-31T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: dt: image - missing?</title>
      <link>https://community.jmp.com/t5/Discussions/dt-image-missing/m-p/742361#M92236</link>
      <description>&lt;P&gt;I find the isMissing() function hard to use. It does not do what I want it to do when its argument is not a number, or maybe a string. Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;is number(:pet[5]) &amp;amp; is missing(:pet[5])
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 15:34:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/dt-image-missing/m-p/742361#M92236</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-03-31T15:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: dt: image - missing?</title>
      <link>https://community.jmp.com/t5/Discussions/dt-image-missing/m-p/742367#M92237</link>
      <description>&lt;P&gt;And a better answer for the actual question:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Column( "type",Formula( type( :pet ) ));
type(pet[5])&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The type in your example is either "Picture" or "Number".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the other question: The column formula is likely coming up with a string value for the expression. You can use isMissing on a string. You can make the JSL behave the same way, like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;row()=5;ismissing(:pet)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 31 Mar 2024 15:42:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/dt-image-missing/m-p/742367#M92237</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2024-03-31T15:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: dt: image - missing?</title>
      <link>https://community.jmp.com/t5/Discussions/dt-image-missing/m-p/742373#M92238</link>
      <description>&lt;P&gt;It can be a mess in JMP to check if objects are empty, missing, null, none, have no items and you will very quickly end in a situation which requires multiple checks to avoid different types of errors. I have created wish list item to have some sort of universal type of function Is None? to check if objects/variables/... are empty/missing&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Add function which can be universally used to check if object/variable is empty/missing" uid="612938" url="https://community.jmp.com/t5/JMP-Wish-List/Add-function-which-can-be-universally-used-to-check-if-object/m-p/612938#U612938" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2024 15:45:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/dt-image-missing/m-p/742373#M92238</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-31T15:45:37Z</dc:date>
    </item>
  </channel>
</rss>

