<?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: How can execute JSL commands after conditions is meet in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400805#M65197</link>
    <description>&lt;P&gt;Dear Mr Brady,&lt;/P&gt;&lt;P&gt;Thank for your support. I will apply&amp;nbsp; your suggestion later in my script.&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 07:59:06 GMT</pubDate>
    <dc:creator>PhamBao</dc:creator>
    <dc:date>2021-07-14T07:59:06Z</dc:date>
    <item>
      <title>How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/399730#M65075</link>
      <description>&lt;P&gt;Dear JMP community users,&lt;BR /&gt;I am a new for JMP and I have been facing a problem. Hopefully, I could get help from you guys.&lt;/P&gt;&lt;P&gt;I have a data&amp;nbsp; table. I would like to run a graph builder for columns only some specific values.&lt;/P&gt;&lt;P&gt;For instance, I would like to select cells that are AB766 and RSDF belonging columns "monitor_set_name" and "measurement_set_name" ;and other columns and rows corresponding to " AB766" and "RSDF"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PhamBao_1-1625808490392.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34042i7DA9CE39F36F3601/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PhamBao_1-1625808490392.png" alt="PhamBao_1-1625808490392.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then, I would like to run " Graph builder " for the table that contains&amp;nbsp; information I need.&lt;BR /&gt;If&amp;nbsp;"monitor_set_name" and "measurement_set_name" do not contain "AB766" and "RSDF", I will skip to run the "graph builder"&lt;BR /&gt;&lt;BR /&gt;Could you give me some advice?&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:33:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/399730#M65075</guid>
      <dc:creator>PhamBao</dc:creator>
      <dc:date>2023-06-10T23:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/399765#M65078</link>
      <description>&lt;P&gt;To generate the JSL below, I simply ran the steps interactively, and then grabbed the code from the log and pasted it into a script window.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);

// Open Data Table: big class.jmp
// → Data Table( "big class" )
Open( "$SAMPLE_DATA/big class.jmp" );


// Select matching cells
Data Table( "big class" ) &amp;lt;&amp;lt; Select Where( :age == 12 &amp;amp; :sex == "F" );


// Subset data table
// → Data Table( "Subset of big class" )
Data Table( "big class" ) &amp;lt;&amp;lt; Subset( Selected Rows( 1 ), Selected columns only( 0 ) );


// Report snapshot: Subset of big class - Graph Builder
Data Table( "Subset of big class" ) &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);

// Invert current selection
Data Table( "big class" ) &amp;lt;&amp;lt; Invert Row Selection;


// Subset data table
// → Data Table( "Subset of big class 2" )
Data Table( "big class" ) &amp;lt;&amp;lt; Subset( Selected Rows( 1 ), Selected columns only( 0 ) );


// Report snapshot: Subset of big class 2 - Graph Builder
Data Table( "Subset of big class 2" ) &amp;lt;&amp;lt;
Graph Builder(
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 6 ) ), Smoother( X, Y, Legend( 7 ) ) )
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jul 2021 09:12:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/399765#M65078</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-09T09:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/399880#M65094</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are new to JMP, be sure to check out the Local Data Filter and Column Switcher. The local data filter will likely help you here... I included a column switcher in my example just to let you know what it can do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just click on the menu items to restrict your graph to the data you wish to consider. No coding is required, and it is easy to use... anyone can use these.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the Local Data Filter, from Graph Builder's red triangle menu select Add Local Data Filter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get the Column Switcher, select Redo &amp;gt; Column Switcher from the main menu. You'll also have to select the column you want to swap out, and the columns you'd like to rotate among. Be sure to include the column you want to swap out, in this set. All columns must be of the same data type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run the script below to get a glimpse of these in action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brady_brady_0-1625853552268.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34054i6CD4461BA79B6BD6/image-size/large?v=v2&amp;amp;px=999" role="button" title="brady_brady_0-1625853552268.png" alt="brady_brady_0-1625853552268.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = open ("$Sample_Data\Car Physical Data.jmp");

Graph Builder(
	Size( 526, 448 ),
	Show Control Panel( 0 ),
	Variables( X( :Country ), Y( :Gas Tank Size ) ),
	Elements( Box Plot( X, Y, Legend( 8 ) ), Points( X, Y, Legend( 9 ) ) ),
	Local Data Filter(
		Show Histograms and Bars( 0 ),
		Add Filter(
			columns( :Type ),
			Where( :Type == "Compact" ),
			Display( :Type, N Items( 5 ) )
		)
	),
	Column Switcher(
		:Gas Tank Size,
		{:Weight, :Turning Circle, :Displacement, :Horsepower, :Gas Tank Size}
	)
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jul 2021 18:07:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/399880#M65094</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-07-09T18:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400057#M65124</link>
      <description>&lt;P&gt;Dear txnelson,&lt;BR /&gt;It works. Appreciate a lot .&lt;BR /&gt;I try to follow your guidance and apply it for myself&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "raw_data.csv", "invisible" );

dt &amp;lt;&amp;lt; Select Where(
	:monitor_set_name == "CSP_FAST_TC" &amp;amp; :spc_chart_subset == "STDDEV" &amp;amp; :measurement_set_name == "U1_X"
);

df = dt &amp;lt;&amp;lt; Subset( Selected Rows( 1 ), Selected columns only( 0 ), "invisible" );

df &amp;lt;&amp;lt; Graph Builder(
	Size( 1056, 675 ),
	Show Control Panel( 0 ),
	Automatic Recalc( 0 ),
	Variables(
		X( :spc_txn_date ),
		Y( :chart_value ),
		Y( :lo_control_lmt, Position( 1 ) ),
		Y( :up_control_lmt, Position( 1 ) ),
		Y( :centerline, Position( 1 ) ),
		Group Y( :monitor_set_name ),
		Group Y( :measurement_set_name ),
		Group Y( :spc_chart_subset ),
		Wrap( :spc_entity )
	),
	Elements(
		Line( X, Y( 1 ), Y( 2 ), Y( 3 ), Y( 4 ), Legend( 25 ), Connection( "Curve" ), Smoothness( 0.5 ) )
	),
	SendToReport(
		Dispatch( {}, "spc_txn_date", ScaleBox, {Label Row( Automatic Font Size( 0 ) )} ),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				25,
				Properties( 2, {Line Color( 19 )} ),
				Properties( 3, {Line Color( 0 ), Line Style( "Dotted" )} )
			)}
		)
	)
);

df &amp;lt;&amp;lt; save picture( "C:\Users\lamquocb\image.jpg" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;However, I encounter another issue that I could not save the picture - graph builder for df.&amp;nbsp;&lt;BR /&gt;I try to access the location I want to store the picture, but I could not find one.&lt;BR /&gt;Do you have any advice?&lt;BR /&gt;Sincerely,&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 18:57:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400057#M65124</guid>
      <dc:creator>PhamBao</dc:creator>
      <dc:date>2021-07-11T18:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400067#M65126</link>
      <description>&lt;P&gt;Your variable "df" points to the subsetted data table.&amp;nbsp; When you create a report from a data table, it does not become part of the data table.&amp;nbsp; It is an entity upon itself.&amp;nbsp; Therefore the easiest way to access the created report, is to specify a variable to point to it.&amp;nbsp; I have done this in the below modification of your script.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = df &amp;lt;&amp;lt; Graph Builder(&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Variable "gb" points to the Graph Builder object.&amp;nbsp; Later in the code, the Save Picture message is applied to the report generated by the Graph Builder platform&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;report(gb) &amp;lt;&amp;lt; save picture( "C:\Users\lamquocb\image.jpg" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the modified script&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here( 1 );
dt = Open( "raw_data.csv", "invisible" );

dt &amp;lt;&amp;lt; Select Where(
	:monitor_set_name == "CSP_FAST_TC" &amp;amp; :spc_chart_subset == "STDDEV" &amp;amp; :measurement_set_name == "U1_X"
);

df = dt &amp;lt;&amp;lt; Subset( Selected Rows( 1 ), Selected columns only( 0 ), "invisible" );

gb = df &amp;lt;&amp;lt; Graph Builder(
	Size( 1056, 675 ),
	Show Control Panel( 0 ),
	Automatic Recalc( 0 ),
	Variables(
		X( :spc_txn_date ),
		Y( :chart_value ),
		Y( :lo_control_lmt, Position( 1 ) ),
		Y( :up_control_lmt, Position( 1 ) ),
		Y( :centerline, Position( 1 ) ),
		Group Y( :monitor_set_name ),
		Group Y( :measurement_set_name ),
		Group Y( :spc_chart_subset ),
		Wrap( :spc_entity )
	),
	Elements(
		Line( X, Y( 1 ), Y( 2 ), Y( 3 ), Y( 4 ), Legend( 25 ), Connection( "Curve" ), Smoothness( 0.5 ) )
	),
	SendToReport(
		Dispatch( {}, "spc_txn_date", ScaleBox, {Label Row( Automatic Font Size( 0 ) )} ),
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				25,
				Properties( 2, {Line Color( 19 )} ),
				Properties( 3, {Line Color( 0 ), Line Style( "Dotted" )} )
			)}
		)
	)
);

report(gb) &amp;lt;&amp;lt; save picture( "C:\Users\lamquocb\image.jpg" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I strongly recommend that you take the time to read the Scripting Guide, available in the JMP Documentation Library, found under the Help pull down menu!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 19:07:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400067#M65126</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-11T19:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400775#M65189</link>
      <description>&lt;P&gt;Dear Txnelson,&lt;/P&gt;
&lt;P&gt;It works. Thank your suggestion. I will refer the Scripting Guide for study.&lt;/P&gt;
&lt;P&gt;Meanwhile, I have on more question.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I would like to extract value from cell of the column, then assign the value to variables since I would like to use variables for graphing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, in case my table does not contain column :&lt;A href="mailto:lo_control_lmt@u2_holdforceduration_2" target="_blank" rel="noopener"&gt;lo_control_lmt@u2_holdforceduration_2&lt;/A&gt;&amp;nbsp;or&amp;nbsp; :&lt;A href="mailto:up_control_lmt@u2_holdforceduration_2" target="_blank" rel="noopener"&gt;up_control_lmt@u2_holdforceduration_2&lt;/A&gt;&amp;nbsp;, my script does not show any graph&lt;/P&gt;
&lt;P&gt;If I delete 2 lines in the my script below, my script will show the graph&lt;/P&gt;
&lt;P&gt;U2_UCL_HDF = Column(dt,"up_control_lmt@u2_holdforceduration_2")[1];&lt;/P&gt;
&lt;P&gt;U2_LCL_HDF = Column(dt,"lo_control_lmt@u2_holdforceduration_2")[1];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do have any solution for this case. Sincerely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;U1_UCL_HDF = Column( dt, "up_control_lmt@u1_holdforceduration_2" )[1]; //extract value from cell
U1_LCL_HDF = Column( dt, "lo_control_lmt@u1_holdforceduration_2" )[1]; //extract value from cell
U2_UCL_HDF = Column( dt, "up_control_lmt@u2_holdforceduration_2" )[1]; //extract value from cell
U2_LCL_HDF = Column( dt, "lo_control_lmt@u2_holdforceduration_2" )[1];   // extract value from cell

 

 

NW = New Window( "KPP summarize",
	Variability Chart(
		Y( :HOLDFORCEDURATION_2 ),
		X( :COMPLEVEL_1, :LINK_ID, :TEST_OR_BOND_HEAD_ID, :LOT, :BONDSTAGE, :CARRIER_X ),
		Max Iter( 100 ),
		Conv Limit( 0.00000001 ),
		Number Integration Abscissas( 128 ),
		Number Function Evals( 65536 ),
		Analysis Type( "Choose best analysis (EMS REML Bayesian)" ),
		Connect Cell Means( 1 ),
		Std Dev Chart( 0 ),
		Points Jittered( 1 ),
		AIAG Labels( 0 ),
		SendToReport(
			Dispatch(
				{"Variability Chart for HOLDFORCEDURATION_2"},
				"2",
				ScaleBox,
				{Min( 332 ), Max( 641 ), Inc( 50 ), Minor Ticks( 1 ),
				Add Ref Line( 0, "Dotted", "Medium Light Gray", "", 1 ),
				Add Ref Line( U1_UCL_HDF, "Solid", "Red", "UCL_U1", 2 ), 

				Add Ref Line( U1_LCL_HDF, "Solid", "Red", "LCL_U1", 2 ), // put the value in here extract
				Add Ref Line( U1_CT_HDF, "DashDot", "Red", "CL_U1", 2 ), // put the value in here extract
				Add Ref Line( U2_UCL_HDF, "Solid", "BlueCyan", "UCL_U2", 2 ), // put the value in here extract
				Add Ref Line( U2_LCL_HDF, "Solid", "BlueCyan", "LCL_U2", 2 ), // put the value in here extract
				Add Ref Line( U2_CT_HDF, "DashDot", "BlueCyan", "CL_U2", 2 )}  // put the value in here extract
			)
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Jul 2021 02:49:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400775#M65189</guid>
      <dc:creator>PhamBao</dc:creator>
      <dc:date>2021-07-14T02:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400776#M65190</link>
      <description>&lt;P&gt;I am confused.&amp;nbsp; You indicate that you want to read values from a specified column, cell 1, but that you do not have such a column.&lt;/P&gt;
&lt;P&gt;JMP will stop running when it can not find a referenced column.&amp;nbsp; Therefore, it will not continue processing once the error is found.&lt;/P&gt;
&lt;P&gt;If you don't have such a column and you want to have it, you will need to add the column to the data table, and populate cell 1 with the value you want it to have.&amp;nbsp; That is the solution.......but I don't think I am really understanding the question.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 03:00:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400776#M65190</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-14T03:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400777#M65191</link>
      <description>&lt;P&gt;Dear txnelson,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JMP will stop running when it can not find a referenced column --&amp;gt; you are correct&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to clarify my question. Thing is I try to get data from the system in my company. Because of different product categories, the data table will be different.&lt;BR /&gt;For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Product A: contain column&amp;nbsp; :&lt;A href="mailto:up_control_lmt@u1_holdforceduration_2" target="_blank"&gt;up_control_lmt@u1_holdforceduration_2&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="mailto:up_control_lmt@u2_holdforceduration_2" target="_blank"&gt;up_control_lmt@u2_holdforceduration_2&lt;/A&gt;&lt;BR /&gt;Product B: only contain column&amp;nbsp;:&lt;A href="mailto:up_control_lmt@u1_holdforceduration_2" target="_blank"&gt;up_control_lmt@u1_holdforceduration_2&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Since I want to build a script that can be applied for both products.&lt;BR /&gt;&lt;BR /&gt;In you suggestion, I need to add one more column for product B if&amp;nbsp; data table of product B does not contain column :&lt;A href="mailto:up_control_lmt@u2_holdforceduration_2" target="_blank"&gt;up_control_lmt@u2_holdforceduration_2.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Therefore, with function that I can use to check whether data table of product B contain or not&amp;nbsp;:&lt;A href="mailto:up_control_lmt@u2_holdforceduration_2" target="_blank"&gt;up_control_lmt@u2_holdforceduration_2.&lt;/A&gt;--&amp;gt; if the data table does contain&amp;nbsp;:&lt;A href="mailto:up_control_lmt@u2_holdforceduration_2" target="_blank"&gt;up_control_lmt@u2_holdforceduration_2.&lt;/A&gt;, I will add new column to the data table.&lt;BR /&gt;&lt;BR /&gt;Hopefully, you could understand my question ?&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 03:17:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400777#M65191</guid>
      <dc:creator>PhamBao</dc:creator>
      <dc:date>2021-07-14T03:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400782#M65192</link>
      <description>&lt;P&gt;The Try() function is one way of dealing with this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;U1_UCL_HDF =Try( Column( dt, "up_control_lmt@u1_holdforceduration_2" )[1],.);

if(isMissing(:U1_UCL_HDF),
     add and populate the new column
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;U1_UCL_HDF will have a valid value if the column and row exists, but if the attempt fails, it will return a missing value.&amp;nbsp; therefore the flow could be something like&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 04:13:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400782#M65192</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-07-14T04:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400802#M65196</link>
      <description>&lt;P&gt;Let I try it Thank you a lot.&lt;/P&gt;
&lt;P&gt;By the way, I found one method&amp;nbsp; that has been suggested in the forum and it works for me&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;CHECK_U2_CT_HDF = Contains(
    df &amp;lt;&amp;lt; get column names( string ),
    "centerline@u2_holdforceduration_2"
);

If( CHECK_U2_CT_HDF == 0,
    df &amp;lt;&amp;lt; New Column( "centerline@u2_holdforceduration_2",
        Numeric,
        Continuous,
        Format( "Best", 10 )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank for your strong support!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 11:29:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400802#M65196</guid>
      <dc:creator>PhamBao</dc:creator>
      <dc:date>2021-07-14T11:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can execute JSL commands after conditions is meet</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400805#M65197</link>
      <description>&lt;P&gt;Dear Mr Brady,&lt;/P&gt;&lt;P&gt;Thank for your support. I will apply&amp;nbsp; your suggestion later in my script.&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 07:59:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-execute-JSL-commands-after-conditions-is-meet/m-p/400805#M65197</guid>
      <dc:creator>PhamBao</dc:creator>
      <dc:date>2021-07-14T07:59:06Z</dc:date>
    </item>
  </channel>
</rss>

