# ]& I" h% _# |- Q. D% |6 J6 d啊没事了,我发现哪里出问题了。if后面少加了一个()。
% {) m3 ?" F2 C: d这样子就可以实现了3 J3 r8 ]8 }3 D# S, P
treenode item = parnode(1);
9 ^5 w4 \4 |' Etreenode current = ownerobject(c);
' ^9 M/ {3 G7 z4 |2 H/**默认分解器选项*/2 W3 R3 S; r; Z5 S' u
if(getvarnum(current,"unpack"))$ ?9 a, \, D8 e0 w( Z+ u% {
{
0 c$ y/ ~7 v0 V. y; E9 s if(getrank(parnode(1)) == 1)
0 [% Q# X( x! F0 X0 ^ return 1;
9 u3 E& t1 [6 P else8 @" O2 a& N: e# w3 a) N
if (content(outobject(current, 2))<getvarnum(outobject(current, 2),"maxcontent"))3 s; C. N8 D5 I
return 2;
* [: e3 K' L; [0 x1 w if (content(outobject(current, 2))==getvarnum(outobject(current, 2),"maxcontent"))% z% U4 J$ X+ h
return 3;
% D/ r( i9 B' C1 d: i% Z ^}
; L1 f- h: K: e: I9 Melse
6 {' e) w( B, K8 p return 0; |