【发布时间】:2020-02-29 08:58:40
【问题描述】:
我想在 Crystal Reports 中嵌套 if-else 语句,但我不知道必要的语法。我该如何安排这样的事情:
Local StringVar x;
If (IsNull({datatable.id}) or {datatable.id} ="") then
x := ""
Else
(If ToText({datatable.id}) <= {?parameter} Then
x := "new"
Else
x:= "")
【问题讨论】:
-
你可以尝试使用 if..else... 而不是 If 和 Else?
-
我试过了,还是不行。我已经尝试使用此代码 Local StringVar x; If (IsNull({datatable.id}) or {datatable.id} ="") then x := "" If ToText({datatable.id})
标签: c# if-statement crystal-reports