谢谢Focuson, 的确我们可以用英文论坛中提供的方法。也就是在Equation 中写入如下公式
% ]8 ^4 y2 r8 S5 G, ?: Y8 }! ~0 z. a" Q* ?8 H0 x- y2 o% m2 P
if (SLStringGet("ordertype2", ordertype2)=="AB") delay=RandomCalculate(16,0.33,0.53,0);8 B5 E* r8 K$ @; P& X8 F
if (SLStringGet("ordertype2", ordertype2)=="BC") delay=RandomCalculate(16,0.67,0.73,0);- B }# g0 F) e$ ~. ?" S
if (SLStringGet("ordertype2", ordertype2)=="AC") delay=RandomCalculate(16,0.47,0.6,0);
( ~) n3 R0 a3 k# nif (SLStringGet("ordertype2", ordertype2)=="ABC") delay=RandomCalculate(16,0.73,0.93,0);
. y1 k+ r* s0 M4 V7 r# |
+ }/ _! h2 H7 m3 j请注意,我把order type 2 这个属性 改成中间没有空格的变量 ordertype2. 如果一个属性要用在Equation 中,这个变量不要包含空格,否则会出错。 |