Adding formula in if else formula in crystal report

时间:2017-10-12 09:48:06

标签: crystal-reports

Hi all this is one of my formula in my crystal report. How can i add in this condition if {ardoc.doctype}= "NS" then display the result from below condition

  if {xtcwt_ardoc.BillTo} = "" then
 "0"
 else if {xtcwt_ardoc.BillTo} = "DEFAULT" then
 "0"
 else
 {xtcwt_soaddress.FinancialName}

1 个答案:

答案 0 :(得分:0)

试试这个:

if {ardoc.billto}= "NS"
(
 if {xtcwt_ardoc.BillTo} = "" then
 "0"
 else if {xtcwt_ardoc.BillTo} = "DEFAULT" then
 "0"
 else
 {xtcwt_soaddress.FinancialName}
)
else
(
//your code
)