Syntax is in Scripting Index and you can use Run Script
![jthi_0-1697739239587.png jthi_0-1697739239587.png](https://community.jmp.com/t5/image/serverpage/image-id/57821i8AAECB7F25D51494/image-size/medium?v=v2&px=400)
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