if openint="if00$openint" then cond:=1和cond:=openint="if00$openint"這兩句不等價嗎? [金字塔]
- 咨詢內(nèi)容:
用這兩句分別配合同樣一段代碼,屏幕出信號的結果不一樣,奇怪哦
- 金字塔客服:
是的,不一樣的。
cond:=openint="if00$openint" cond 的計算結果非0即1
if openint="if00$openint" then cond:=1 條件成立,cond的賦值為1 ,否則不重新賦值,即等于之前的cond或者上一周期的cond(具體等于多少看具體情況)
[此貼子已經(jīng)被作者于2011-1-9 19:43:02編輯過] - 用戶回復:
我*,lee兄厲害!
我tnnd掉進了個好難察覺的陷阱,應該是
cond:=openint="if00$openint";
和
datt:=0;//差了這一句,結果多出了兩個信號
if openint="if00$openint" then datt:=1;這兩句才是等價的。
- 上一篇:2.7版公式不能在舊版下運行問題
- 下一篇:上海a股,日線顯示問題
相關文章
-
沒有相關內(nèi)容