Crystal reports 我想知道crystal report是否存在条件编号和字符串公式错误 如果{?type}='Rent'那么 (如果{realstate\u repository\u plantclass.rentprice}0,则 ( 如果{realestate\u re

Crystal reports 我想知道crystal report是否存在条件编号和字符串公式错误 如果{?type}='Rent'那么 (如果{realstate\u repository\u plantclass.rentprice}0,则 ( 如果{realestate\u re,crystal-reports,Crystal Reports,我想知道crystal report是否存在条件编号和字符串公式错误 如果{?type}='Rent'那么 (如果{realstate\u repository\u plantclass.rentprice}0,则 ( 如果{realestate\u repository\u plantclass.rentprice}55.50那么 {realstate\u repository\u plantclass.rentprice} 其他的 nn; ) ) 其他的 ( 如果{realstate\u r

我想知道crystal report是否存在条件编号和字符串公式错误
如果{?type}='Rent'那么
(如果{realstate\u repository\u plantclass.rentprice}0,则
(
如果{realestate\u repository\u plantclass.rentprice}55.50那么
{realstate\u repository\u plantclass.rentprice}
其他的
nn;
)
)
其他的
(
如果{realstate\u repository\u plantclass.sellprice}0,则
{realstate\u repository\u plantclass.sellprice}
)
如果{?type}='Rent'那么(
如果{realstate\u repository\u plantclass.rentprice}0,则(
如果{realestate\u repository\u plantclass.rentprice}55.50那么
{realstate\u repository\u plantclass.rentprice}
其他的
nn;//这里不需要分号;还有,“nn”是什么?
)
)
否则(
如果{realstate\u repository\u plantclass.sellprice}0,则
{realstate\u repository\u plantclass.sellprice}
)

请您详细说明一下,您的问题不清楚。到底发生了什么,你会遇到哪些错误?
    if {?type} ='Rent' then
    (if {realestate_repository_plantclass.rentprice}<>0 then
    (
        if{realestate_repository_plantclass.rentprice}<>55.50 then
        {realestate_repository_plantclass.rentprice}
        else
    nn;
    )

    )
    else
    (
    if {realestate_repository_plantclass.sellprice}<>0 then
    {realestate_repository_plantclass.sellprice}

)
if {?type} ='Rent' then (
  if {realestate_repository_plantclass.rentprice}<>0 then (
    if{realestate_repository_plantclass.rentprice}<>55.50 then
      {realestate_repository_plantclass.rentprice}
    else
      nn;  //you don't need a semi-colon here; also, what is 'nn'?
  )
)
else (
  if {realestate_repository_plantclass.sellprice}<>0 then
    {realestate_repository_plantclass.sellprice}
)