请教:全局变量定义 VARIABLE:MainTrend=0;//主级趋势定义。 if holding >0 and ABS(cond0)>ABS(cond1) AND cond0>0 then MainTrend:=AREA0;//主级多力度 编译运行会出现提示:if 语句缺少then, 要是写成:if holding >0 and ABS(cond0)>ABS(cond1) AND cond0>0 then dd:=AREA0; 则可以顺利通过编译。 请问问这是什么原因呢?是不是不能通过这种方式给全局变量赋值?