请教
if cd1 then begin
平空1:sellshort(pk,2,thisclose);
d1:=1;
else begin
平空1:sellshort(pk,1,thisclose);
d1:=1;
end
这个是嵌套在一个if语句里的 但是提示是else前没有if
if d1=0 and pk then begin
if cd1 then begin
平空1:sellshort(pk,2,thisclose);
d1:=1;
else begin
平空1:sellshort(pk,1,thisclose);
d1:=1;
end
end;
提示是else 前缺少if