<?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: JMP Script: Message with if condition in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/624066#M82296</link>
    <description>&lt;P&gt;Right!&lt;/P&gt;&lt;P&gt;I wasn't looking at this ")"&lt;/P&gt;&lt;P&gt;Now it works well!&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 06:59:09 GMT</pubDate>
    <dc:creator>Sebastienlg</dc:creator>
    <dc:date>2023-04-20T06:59:09Z</dc:date>
    <item>
      <title>JMP Script: Message with if condition</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/623346#M82220</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make a control chart based on a condition.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I received a message when the condition Eval(Y) is not present in the without_limits list (else condition).&lt;/P&gt;&lt;P&gt;Here is my program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If (Contains(without_limits,Eval(Y)),
		graph=Control Chart Builder(
				Variables(
					Subgroup( :X ),
					Y( Eval(Y) ),
					Phase(:"Version")
				)
			),
		graph = RAW_DATA_TABLE &amp;lt;&amp;lt; 
				Control Chart Builder(
					Size( 534, 450 ),
					Show Two Shewhart Charts( 0 ),
					Show Control Panel( 0 ),			
					Sort by Row Order( 1 ),
					Show Limit Summaries( 0 ),
					Variables( Y( Eval(Y) ),Subgroup( :X ), Phase(:"Version")),	
					Get Limits(LIMIT_TABLE),
				),
		N = N Items( phaseLevels );
		// On met en forme les lignes
		For( i = 1, i &amp;lt;= N Items( phaseLevels ), i++,
			graph &amp;lt;&amp;lt; SendToReport(
					Dispatch(
						{},
						"Control Chart Builder",
						OutlineBox,
						{Set Title( "Représentation graphique" )},
						FrameBox( 2 ),
						{
						DispatchSeg( Line Seg( Eval(3*i+N-2) ),		{Line Color( "Medium Light Green" ),Line Style( "Dotted" ), Line Width( 1.5 )} ),
						DispatchSeg( Line Seg( Eval(3*i+1+N-2) ),	{Line Color( "Medium Light Orange" ), Line Style( "Dotted" ), Line Width( 2.5 )}),
						DispatchSeg( Line Seg( Eval(3*i+2+N-2) ),	{Line Color( "Medium Light Red" ), Line Style( "Dotted" ), Line Width( 2.5 )})
						}
					)
				)
			)
		)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is the message I get:&lt;/P&gt;&lt;P&gt;"Check that the script does not contain an assignment with a single = sign, where an equality test with two == signs is expected. The expression is: ..."&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="Sebastienlg_0-1681811834955.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52057i236B75190A81B0BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Sebastienlg_0-1681811834955.png" alt="Sebastienlg_0-1681811834955.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However after clicking on the continue button it is working...&lt;/P&gt;&lt;P&gt;Any idea to help me understand this message?&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:08:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/623346#M82220</guid>
      <dc:creator>Sebastienlg</dc:creator>
      <dc:date>2023-06-09T16:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script: Message with if condition</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/623569#M82238</link>
      <description>&lt;P&gt;Make sure your , are in correct locations&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Contains(without_limits, Eval(Y)), 
	graph = Control Chart Builder(Variables(Subgroup(:X), Y(Eval(Y)), Phase(:"Version")))
,
	graph = RAW_DATA_TABLE &amp;lt;&amp;lt; Control Chart Builder(
		Size(534, 450),
		Show Two Shewhart Charts(0),
		Show Control Panel(0),
		Sort by Row Order(1),
		Show Limit Summaries(0),
		Variables(Y(Eval(Y)), Subgroup(:X), Phase(:"Version")),
		Get Limits(LIMIT_TABLE),
	)
, N = N Items(phaseLevels);
	For(i = 1, i &amp;lt;= N Items(phaseLevels), i++,
		graph &amp;lt;&amp;lt; SendToReport(Dispatch(
			{},
			"Control Chart Builder",
			OutlineBox,
			{Set Title("Représentation graphique")},
			FrameBox(2),
			{DispatchSeg(Line Seg(Eval(3 * i + N - 2)), {Line Color("Medium Light Green"), Line Style("Dotted"), Line Width(1.5)}),
			DispatchSeg(Line Seg(Eval(3 * i + 1 + N - 2)), {Line Color("Medium Light Orange"), Line Style("Dotted"), Line Width(2.5)}),
			DispatchSeg(Line Seg(Eval(3 * i + 2 + N - 2)), {Line Color("Medium Light Red"), Line Style("Dotted"), Line Width(2.5)})}
		))
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Apr 2023 17:18:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/623569#M82238</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-04-18T17:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script: Message with if condition</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/623822#M82267</link>
      <description>&lt;P&gt;I had a look and all the "," seem ok.&lt;/P&gt;&lt;P&gt;Couldn't it come from hte , in red below?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;...&lt;BR /&gt;Get Limits(LIMIT_TABLE),
	)
&lt;FONT color="#FF0000"&gt;,&lt;/FONT&gt; N = N Items(phaseLevels);&lt;BR /&gt;...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:31:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/623822#M82267</guid>
      <dc:creator>Sebastienlg</dc:creator>
      <dc:date>2023-04-19T12:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script: Message with if condition</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/623824#M82268</link>
      <description>&lt;P&gt;It could be due to both of these&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1681908211668.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/52083i43F9A8537F8118A8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1681908211668.png" alt="jthi_0-1681908211668.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Should the N Items be already outside if statement?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 12:45:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/623824#M82268</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-04-19T12:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script: Message with if condition</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/624066#M82296</link>
      <description>&lt;P&gt;Right!&lt;/P&gt;&lt;P&gt;I wasn't looking at this ")"&lt;/P&gt;&lt;P&gt;Now it works well!&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 06:59:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-Message-with-if-condition/m-p/624066#M82296</guid>
      <dc:creator>Sebastienlg</dc:creator>
      <dc:date>2023-04-20T06:59:09Z</dc:date>
    </item>
  </channel>
</rss>

