cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • See how to interactively organize and restructure data for analysis. Register for May 29 webinar, 2pm US ET.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Jackie_
Level VI

Run radiobox using jsl

Hi,

 

Is there a way to run the radiobox using set?

Tried the following code but doesn't work

Names Default To Here( 1 );
New Window( "Example", r1 = Radio Box( {"Red", "Green", "Blue"},
das = r1 << get selected;
if(r1 == "Green",

Caption("Green"))

 ) );
r1 << set( 2, runscript(1) );
1 REPLY 1
jthi
Super User

Re: Run radiobox using jsl

Syntax is in Scripting Index and you can use Run Script

jthi_0-1697739239587.png

but you do have some mistakes in your script (you should use das instead of r1 in comparison)

Names Default To Here(1);
New Window("Example",
	r1 = Radio Box({"Red", "Green", "Blue"},
		das = r1 << get selected;
		If(das == "Green", 
			Caption("Green")
		);
	)
);
r1 << set(2, runscript(1));
-Jarmo

Recommended Articles