<?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: Run radiobox using jsl in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Run-radiobox-using-jsl/m-p/688760#M87465</link>
    <description>&lt;P&gt;Syntax is in Scripting Index and you can use Run Script&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1697739239587.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57821i8AAECB7F25D51494/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1697739239587.png" alt="jthi_0-1697739239587.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but you do have some mistakes in your script (you should use das instead of r1 in comparison)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example",
	r1 = Radio Box({"Red", "Green", "Blue"},
		das = r1 &amp;lt;&amp;lt; get selected;
		If(das == "Green", 
			Caption("Green")
		);
	)
);
r1 &amp;lt;&amp;lt; set(2, runscript(1));&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 19 Oct 2023 18:14:49 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-10-19T18:14:49Z</dc:date>
    <item>
      <title>Run radiobox using jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Run-radiobox-using-jsl/m-p/688748#M87463</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to run the radiobox using set?&lt;/P&gt;&lt;P&gt;Tried the following code but doesn't work&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Example", r1 = Radio Box( {"Red", "Green", "Blue"},
das = r1 &amp;lt;&amp;lt; get selected;
if(r1 == "Green",

Caption("Green"))

 ) );
r1 &amp;lt;&amp;lt; set( 2, runscript(1) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Oct 2023 18:08:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-radiobox-using-jsl/m-p/688748#M87463</guid>
      <dc:creator>Jackie_</dc:creator>
      <dc:date>2023-10-19T18:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Run radiobox using jsl</title>
      <link>https://community.jmp.com/t5/Discussions/Run-radiobox-using-jsl/m-p/688760#M87465</link>
      <description>&lt;P&gt;Syntax is in Scripting Index and you can use Run Script&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1697739239587.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57821i8AAECB7F25D51494/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1697739239587.png" alt="jthi_0-1697739239587.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;but you do have some mistakes in your script (you should use das instead of r1 in comparison)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
New Window("Example",
	r1 = Radio Box({"Red", "Green", "Blue"},
		das = r1 &amp;lt;&amp;lt; get selected;
		If(das == "Green", 
			Caption("Green")
		);
	)
);
r1 &amp;lt;&amp;lt; set(2, runscript(1));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Oct 2023 18:14:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Run-radiobox-using-jsl/m-p/688760#M87465</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-19T18:14:49Z</dc:date>
    </item>
  </channel>
</rss>

