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