回复:JMP 脚本:带有 if 条件的消息确保您的 , 位于正确的位置
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)})}
))
);
);回复:JMP 脚本:带有 if 条件的消息我看了一下,所有的“,”似乎都没问题。
它不能来自下面红色的 hte 吗?
...<BR />Get Limits(LIMIT_TABLE),
)
<FONT color="#FF0000">,</FONT> N = N Items(phaseLevels);<BR />...
回复:JMP 脚本:带有 if 条件的消息可能是这两个原因

N 项是否应该已经在 if 语句之外?
回复:JMP 脚本:带有 if 条件的消息正确的!
我不是在看这个“)”
现在效果很好!
谢谢
JMP 脚本:带有 if 条件的消息大家好,
我正在尝试根据条件制作控制图。
但是,当条件 Eval(Y) 不存在于 without_limits 列表(其他条件)中时,我收到一条消息。
这是我的程序:
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 )})
}
)
)
)
)这是我收到的消息:
“检查脚本不包含带有单个 = 符号的赋值,其中需要使用两个 == 符号进行相等性测试。 表情是:……”

但是在点击继续按钮后它正在工作......
有什么想法可以帮助我理解这条消息吗?
塞巴斯蒂安
高级统计建模自动化和脚本实验设计质量与工艺工程