if openint="if00$openint" then cond:=1和cond:=openint="if00$openint"这两句不等价吗? [金字塔]
- 咨询内容:
用这两句分别配合同样一段代码,屏幕出信号的结果不一样,奇怪哦
- 金字塔客服:
是的,不一样的。
cond:=openint="if00$openint" cond 的计算结果非0即1
if openint="if00$openint" then cond:=1 条件成立,cond的赋值为1 ,否则不重新赋值,即等于之前的cond或者上一周期的cond(具体等于多少看具体情况)
[此贴子已经被作者于2011-1-9 19:43:02编辑过] - 用户回复:
我*,lee兄厉害!
我tnnd掉进了个好难察觉的陷阱,应该是
cond:=openint="if00$openint";
和
datt:=0;//差了这一句,结果多出了两个信号
if openint="if00$openint" then datt:=1;这两句才是等价的。
- 上一篇:2.7版公式不能在旧版下运行问题
- 下一篇:上海a股,日线显示问题
相关文章
-
没有相关内容