<?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: Check Display box existence by JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Check-Display-box-existence-by-JSL/m-p/247758#M48640</link>
    <description>&lt;P&gt;See this example for a user function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

exists = Function( { db expr },
	Try(
		db expr;
		1,
		0
	);
);

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = dt &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :height ), Fit Line );

bivr = biv &amp;lt;&amp;lt; Report;

If( exists( Expr( bivr[OutlineBox(1)] ) ), "I'm here!", "Where did I go?" );
If( exists( Expr( bivr[OutlineBox(100)] ) ), "I'm here!", "Where did I go?" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 16 Feb 2020 16:44:21 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2020-02-16T16:44:21Z</dc:date>
    <item>
      <title>Check Display box existence by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Check-Display-box-existence-by-JSL/m-p/247738#M48637</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Is there some function to check whether exists certain display box by number/title?&lt;/P&gt;
&lt;P&gt;For instance:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dist = Distribution(Continuous Distribution( Column( :weight ) ));
Exists((dist&amp;lt;&amp;lt;report)[OutlineBox(10)])// will return return false
Exists((dist&amp;lt;&amp;lt;report)[OutlineBox("ABC")])// will return return false&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;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 16:13:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Check-Display-box-existence-by-JSL/m-p/247738#M48637</guid>
      <dc:creator>tom_abramov</dc:creator>
      <dc:date>2020-02-17T16:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Check Display box existence by JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Check-Display-box-existence-by-JSL/m-p/247758#M48640</link>
      <description>&lt;P&gt;See this example for a user function.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

exists = Function( { db expr },
	Try(
		db expr;
		1,
		0
	);
);

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = dt &amp;lt;&amp;lt; Bivariate( Y( :weight ), X( :height ), Fit Line );

bivr = biv &amp;lt;&amp;lt; Report;

If( exists( Expr( bivr[OutlineBox(1)] ) ), "I'm here!", "Where did I go?" );
If( exists( Expr( bivr[OutlineBox(100)] ) ), "I'm here!", "Where did I go?" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 16 Feb 2020 16:44:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Check-Display-box-existence-by-JSL/m-p/247758#M48640</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-02-16T16:44:21Z</dc:date>
    </item>
  </channel>
</rss>

