cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

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

"If" returns error response

I have a script to draw charts and use "if" for the reference line.

"Sometimes" the reference line is not correct. 

For example, when Rel_Test=H3TRB, the reference line should be 10, but it shows 5.

How could I fix it?

LT_0-1709611498770.png

 


d6_graph=dt2 << 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( 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%"), )} ), Dispatch( {}, "graph title", TextEditBox, {Set Text( "dIGSS" )} ), Dispatch( {}, "Y title", ftest_name, {Set Text( "dIGSS" )} ) ) );

JMP version: 17.2.0 

0 REPLIES 0

Recommended Articles