多个if in 1公式

时间:2014-06-02 08:47:40

标签: crystal-reports crystal-reports-xi

新用户。

任何人都可以告诉我如何在1公式中使用它吗? thx提前。

保罗。

(if {TASKS.PRIORITY} = "1- Delivery stop" then "4"); or 
(if {TASKS.PRIORITY} = "2- Functional Some proces stop" then "12"); or
(if {TASKS.PRIORITY} = "2 - High" then "12"); or
(if {TASKS.PRIORITY} = "2- Technical Some proces stop" then "8")

1 个答案:

答案 0 :(得分:0)

试试这种方式

if {TASKS.PRIORITY} = "1- Delivery stop" 
then "4"
Else if {TASKS.PRIORITY} = "2- Functional Some proces stop" 
then "12"
Else if {TASKS.PRIORITY} = "2 - High" 
then "12"
Else if {TASKS.PRIORITY} = "2- Technical Some proces stop" 
then "8"