以文本方式查看主题

-  金字塔客服中心 - 专业程序化交易软件提供商  (http://weistock.com/bbs/index.asp)
--  公式模型编写问题提交  (http://weistock.com/bbs/list.asp?boardid=4)
----  条件  (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=78452)

--  作者:aliyun
--  发布时间:2015/5/11 11:31:49
--  条件

条件a

条件b

条件c

条件d

条件e

 

if 条件a and not(其它条件)then...//任意1个条件,且排除其它条件(只能罗列每个其它条件?)

if 条件b and not(其它条件)then...

if 条件c and not(其它条件)then...

if 条件d and not(其它条件)then...

if 条件e and not(其它条件)then...

 

if 条件a and 条件b and not(其它条件)then...//任意2个条件,且排除其它条件

if 条件a and 条件c and not(其它条件)then...

......

 

if 条件a and 条件b and 条件c and not(其它条件)then...//任意3个条件,且排除其它条件

......

 

if 条件a and 条件b and 条件c and 条件d and not(其它条件)then...//任意4个条件,且排除其它条件

......

 

如何简化?


--  作者:jinzhe
--  发布时间:2015/5/11 12:59:40
--  
这个只能是罗列枚举了