[Full]
完整版
[Rss]
订阅
[Xml]
无图版
[Xhtml]
无图版
Rss
& SiteMap
金字塔客服中心 - 专业程序化交易软件提供商
http://www.weistock.com/bbs/
专业程序化软件提供商
◎
金字塔客服中心 - 专业程序化交易软件提供商
→
公式模型编写问题提交
→
求教简单的逻辑问题
共4 条记录, 每页显示 10 条, 页签:
[1]
[浏览完整版]
标题:求教简单的逻辑问题
1楼
wzsunshao
发表于:2016/3/6 9:03:26
cond5:=
cond1 or cond2 or cond3
公式1: if cond1 or cond2 or cond3 and cond4 then
公式2: if (cond1 or cond2 or cond3) and cond4 then
公式3: if cond5 and cond4 then
请问以上3句逻辑结果在金字塔里是否一样
2楼
wenarm
发表于:2016/3/6 10:58:15
and的优先级比or高,1和2 的逻辑上就有先后顺序。
公式1: if cond1 or cond2 or
(cond3 and cond4)
then
公式2: if (cond1 or cond2 or cond3) and cond4 then
3楼
wzsunshao
发表于:2016/3/6 11:21:30
谢谢。运行效果是否如下
cond5:=
cond1 or cond2 or cond3
;
公式1: if cond1 or cond2 or cond3 and cond4 then =
if cond1 or cond2 or (cond3 and cond4) then
公式2: if (cond1 or cond2 or cond3) and cond4 then =
公式3: if cond5 and cond4 then
4楼
wenarm
发表于:2016/3/6 16:55:40
是的。理解正确
共4 条记录, 每页显示 10 条, 页签:
[1]
Powered By
Dvbbs
Version 8.3.0
Processed in 0.01563 s, 3 queries.
[Full]
完整版
[Rss]
订阅
[Xml]
无图版
[Xhtml]
无图版