<?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 &amp;quot;If&amp;quot; returns error response in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/quot-If-quot-returns-error-response/m-p/729856#M91254</link>
    <description>&lt;P&gt;I have a script to draw charts and use "if" for the reference line.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Sometimes"&lt;/EM&gt; the reference line is not correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, when Rel_Test=H3TRB, the reference line should be 10, but it shows 5.&lt;/P&gt;&lt;P&gt;How could I fix it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LT_0-1709611498770.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61806iF94F7ECDC29E3713/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LT_0-1709611498770.png" alt="LT_0-1709611498770.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&lt;BR /&gt;d6_graph=dt2 &amp;lt;&amp;lt; Graph Builder(
	Size( 400, 300 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Lot),
		Y( :dIGSS, Position( 1 ) ),
		Color( :Lot ),
		By(:Rel_Test)
	),
	Elements( Box Plot( X, Y( 1 ), Legend( 16 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"dIGSS",
			ScaleBox,
			{Min( 0 ), Max( 20 ), Inc( 5 ), Minor Ticks( 1 ),
			Add Ref Line(
				&lt;STRONG&gt;If(:Rel_Test=="H3TRB" | :Rel_Test=="HAST" | :Rel_Test=="UHAST" | :Rel_Test=="PCT",10.0,5.0),
				"Solid",
				"Medium Dark Red",
				If(:Rel_Test=="H3TRB" | :Rel_Test=="HAST" | :Rel_Test=="UHAST" | :Rel_Test=="PCT","1000%","500%"),
			)&lt;/STRONG&gt;}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "dIGSS" )} ),
		Dispatch( {}, "Y title", ftest_name, {Set Text( "dIGSS" )} )
	)
	
);   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;JMP version: 17.2.0&lt;/CODE&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 04:09:47 GMT</pubDate>
    <dc:creator>LT</dc:creator>
    <dc:date>2024-03-05T04:09:47Z</dc:date>
    <item>
      <title>"If" returns error response</title>
      <link>https://community.jmp.com/t5/Discussions/quot-If-quot-returns-error-response/m-p/729856#M91254</link>
      <description>&lt;P&gt;I have a script to draw charts and use "if" for the reference line.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Sometimes"&lt;/EM&gt; the reference line is not correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, when Rel_Test=H3TRB, the reference line should be 10, but it shows 5.&lt;/P&gt;&lt;P&gt;How could I fix it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LT_0-1709611498770.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61806iF94F7ECDC29E3713/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LT_0-1709611498770.png" alt="LT_0-1709611498770.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&lt;BR /&gt;d6_graph=dt2 &amp;lt;&amp;lt; Graph Builder(
	Size( 400, 300 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Lot),
		Y( :dIGSS, Position( 1 ) ),
		Color( :Lot ),
		By(:Rel_Test)
	),
	Elements( Box Plot( X, Y( 1 ), Legend( 16 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"dIGSS",
			ScaleBox,
			{Min( 0 ), Max( 20 ), Inc( 5 ), Minor Ticks( 1 ),
			Add Ref Line(
				&lt;STRONG&gt;If(:Rel_Test=="H3TRB" | :Rel_Test=="HAST" | :Rel_Test=="UHAST" | :Rel_Test=="PCT",10.0,5.0),
				"Solid",
				"Medium Dark Red",
				If(:Rel_Test=="H3TRB" | :Rel_Test=="HAST" | :Rel_Test=="UHAST" | :Rel_Test=="PCT","1000%","500%"),
			)&lt;/STRONG&gt;}
		),
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "dIGSS" )} ),
		Dispatch( {}, "Y title", ftest_name, {Set Text( "dIGSS" )} )
	)
	
);   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE class=" language-jsl"&gt;JMP version: 17.2.0&lt;/CODE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 04:09:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/quot-If-quot-returns-error-response/m-p/729856#M91254</guid>
      <dc:creator>LT</dc:creator>
      <dc:date>2024-03-05T04:09:47Z</dc:date>
    </item>
  </channel>
</rss>

