<?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 Custom Function - add comment in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Custom-Function-add-comment/m-p/828088#M100984</link>
    <description>&lt;P&gt;Some of the examples in the Scripting Index have lots of details and useful comments:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1737185109806.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72024iB2503BF5E8C0DE5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1737185109806.png" alt="hogi_0-1737185109806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a user&amp;nbsp;submits a function via &lt;FONT face="courier new,courier"&gt;Add custom Function()&lt;/FONT&gt;, such comments are automatically removed:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1737185298165.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72025i7C6A4C76B1E53A2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1737185298165.png" alt="hogi_1-1737185298165.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I have to do to see the comments?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Add Custom Functions(
	New Custom Function(
		"test",
		"f",
		Function( {}, Print( "hello world" )
		),
		&amp;lt;&amp;lt;Description( "test function" ),
		&amp;lt;&amp;lt;Example(
			Expr(
			x=3;
		// here I want to add a comment which will be displayed in the scripting index
				f()
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 18 Jan 2025 07:30:11 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2025-01-18T07:30:11Z</dc:date>
    <item>
      <title>Custom Function - add comment</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Function-add-comment/m-p/828088#M100984</link>
      <description>&lt;P&gt;Some of the examples in the Scripting Index have lots of details and useful comments:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1737185109806.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72024iB2503BF5E8C0DE5D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1737185109806.png" alt="hogi_0-1737185109806.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a user&amp;nbsp;submits a function via &lt;FONT face="courier new,courier"&gt;Add custom Function()&lt;/FONT&gt;, such comments are automatically removed:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1737185298165.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72025i7C6A4C76B1E53A2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1737185298165.png" alt="hogi_1-1737185298165.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I have to do to see the comments?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Add Custom Functions(
	New Custom Function(
		"test",
		"f",
		Function( {}, Print( "hello world" )
		),
		&amp;lt;&amp;lt;Description( "test function" ),
		&amp;lt;&amp;lt;Example(
			Expr(
			x=3;
		// here I want to add a comment which will be displayed in the scripting index
				f()
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Jan 2025 07:30:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Function-add-comment/m-p/828088#M100984</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-01-18T07:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Function - add comment</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-Function-add-comment/m-p/828099#M100985</link>
      <description>&lt;P&gt;Usually JSL Quote() can help with these type of situations. Additional benefit is that you don't have to use strings when building your functions&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);
myAdd = New Custom Function(
	"custom",
	"Add",
	Function({x, y = 1},
		x + y - 1
	)
);
myAdd &amp;lt;&amp;lt; Example(JSL Quote(// add first to second
	a = Add(1, 2);
	Show(a); // a = 3;
));

Add Custom Functions(myAdd);&lt;/CODE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1737187104740.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72026i7534E30F097F631B/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1737187104740.png" alt="jthi_0-1737187104740.png" /&gt;&lt;/span&gt;&lt;/P&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>Sat, 18 Jan 2025 07:59:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-Function-add-comment/m-p/828099#M100985</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-18T07:59:07Z</dc:date>
    </item>
  </channel>
</rss>

