<?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 A custom function evaluates the return value in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/A-custom-function-evaluates-the-return-value/m-p/825825#M100640</link>
    <description>&lt;P&gt;fyi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While debugging&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Replace-Head/td-p/800061" target="_blank" rel="noopener"&gt;@replace Head&lt;/A&gt;, I noticed that a &lt;FONT face="courier new,courier"&gt;custom function&lt;/FONT&gt; evaluates the return values &lt;FONT face="courier new,courier"&gt;+1x&lt;/FONT&gt; compared to a standard &lt;FONT face="courier new,courier"&gt;function&lt;/FONT&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myFunction = function({}, return(Expr(3*5)));
add custom functions (newcustom function("my custom", "function", function({}, return(Expr(3*5)))));

Show(myfunction());
Show(my custom:function())&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so maybe add another &lt;FONT face="courier new,courier"&gt;Expr()&lt;/FONT&gt; ...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;add custom functions (newcustom function("my custom", "function", function({}, return(Expr(Expr(3*5))))));

Show(my custom:function())&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2025 22:06:09 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-01-03T22:06:09Z</dc:date>
    <item>
      <title>A custom function evaluates the return value</title>
      <link>https://community.jmp.com/t5/Discussions/A-custom-function-evaluates-the-return-value/m-p/825825#M100640</link>
      <description>&lt;P&gt;fyi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While debugging&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/Replace-Head/td-p/800061" target="_blank" rel="noopener"&gt;@replace Head&lt;/A&gt;, I noticed that a &lt;FONT face="courier new,courier"&gt;custom function&lt;/FONT&gt; evaluates the return values &lt;FONT face="courier new,courier"&gt;+1x&lt;/FONT&gt; compared to a standard &lt;FONT face="courier new,courier"&gt;function&lt;/FONT&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myFunction = function({}, return(Expr(3*5)));
add custom functions (newcustom function("my custom", "function", function({}, return(Expr(3*5)))));

Show(myfunction());
Show(my custom:function())&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so maybe add another &lt;FONT face="courier new,courier"&gt;Expr()&lt;/FONT&gt; ...&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;add custom functions (newcustom function("my custom", "function", function({}, return(Expr(Expr(3*5))))));

Show(my custom:function())&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 22:06:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/A-custom-function-evaluates-the-return-value/m-p/825825#M100640</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-01-03T22:06:09Z</dc:date>
    </item>
  </channel>
</rss>

