Re: Script JMP: mensaje con condición ifAsegúrese de que sus , estén en las ubicaciones correctas
If(Contains(without_limits, Eval(Y)),
graph = Control Chart Builder(Variables(Subgroup(:X), Y(Eval(Y)), Phase(:"Version")))
,
graph = RAW_DATA_TABLE << 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 <= N Items(phaseLevels), i++,
graph << 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)})}
))
);
);Re: Script JMP: mensaje con condición ifEché un vistazo y todos los "," parecen estar bien.
¿No podría venir de hte , en rojo abajo?
...<BR />Get Limits(LIMIT_TABLE),
)
<FONT color="#FF0000">,</FONT> N = N Items(phaseLevels);<BR />...
Re: Script JMP: mensaje con condición ifPuede ser debido a estos dos

¿Deberían los elementos N estar ya fuera de la declaración if?
Re: Script JMP: mensaje con condición if¡Bien!
No estaba mirando esto ")"
¡Ahora funciona bien!
gracias
Script JMP: mensaje con condición ifHola a todos,
Estoy tratando de hacer un gráfico de control basado en una condición.
Sin embargo, recibí un mensaje cuando la condición Eval(Y) no está presente en la lista sin_límites (otra condición).
Aquí está mi programa:
If (Contains(without_limits,Eval(Y)),
graph=Control Chart Builder(
Variables(
Subgroup( :X ),
Y( Eval(Y) ),
Phase(:"Version")
)
),
graph = RAW_DATA_TABLE <<
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 <= N Items( phaseLevels ), i++,
graph << 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 )})
}
)
)
)
)Aquí está el mensaje que recibo:
"Verifique que el script no contenga una asignación con un solo signo =, donde se espera una prueba de igualdad con dos signos ==. La expresión es: ..."

Sin embargo, después de hacer clic en el botón Continuar, está funcionando...
¿Alguna idea que me ayude a entender este mensaje?
Sebastián
Modelado Estadístico AvanzadoAutomatización y secuencias de comandosDiseño de experimentosIngeniería de Calidad y Procesos