C# 运行时crystal report by pass参数中的无界字段

C# 运行时crystal report by pass参数中的无界字段,c#,crystal-reports,C#,Crystal Reports,我有一份水晶报告。 在该报告中,如果值为0,我需要将字段设置为'Go',如果值为1,则需要将字段设置为'NoGo' 我创建了一个未绑定的字段字符串,并编写了如下公式: if {?idline}=1 and tonumber({bevarage;1.torque})=0 then {@UnboundString2}='Go' else if {?idline}=1 and tonumber({bevarage;1.torque})=1 then {@UnboundString2}='NoGo'

我有一份水晶报告。 在该报告中,如果值为0,我需要将字段设置为'Go',如果值为1,则需要将字段设置为'NoGo'

我创建了一个未绑定的字段字符串,并编写了如下公式:

if {?idline}=1 and tonumber({bevarage;1.torque})=0 then {@UnboundString2}='Go' 
else if {?idline}=1 and tonumber({bevarage;1.torque})=1 then {@UnboundString2}='NoGo' 
但这不起作用,并且总是从无界字段返回一个空字符串。
请帮我修复它。

Crystal中的赋值运算符是:=而不是=

为什么不简单地创建一个依赖于参数的公式呢