|
本帖最后由 m2123476wqm2q4v 于 2021-12-29 17:40 编辑
我现在要运算一个字段的值 代码如下:
If ("@Value(JZDBH)" < "@Value(起点编号)" ) Then
"@Evaluate(@Value(节点总数) - @Value(起点编号) + 1 + @Value(JZDBH))"
Else If ("@Value(JZDBH)" = "@Value(起点编号)") Then
"@Evaluate(@Value(起点编号) - @Value(起点编号) + 1)"
Else If ("@Value(JZDBH)" > "@Value(起点编号)") Then
"@Evaluate(@Value(JZDBH) - @Value(起点编号) + 1)"
运行就提示:
2021-12-29 14:15:19| 16.6| 0.0|WARN |923870 invalid bareword "Then"
2021-12-29 14:15:19| 16.6| 0.0|WARN |923870 in expression "If ("6" < "73" ) Then "20" Else...";
2021-12-29 14:15:19| 16.6| 0.0|WARN |923870 should be "$Then" or "{Then}" or "Then(...)" or ...
Then加上$就又提示:
2021-12-29 14:15:19| 16.6| 0.0|WARN |923870 missing operator at _@_
2021-12-29 14:15:19| 16.6| 0.0|WARN |923870 in expression "If ("6" < "73" ) _@_$Then "20" ..."
想问一下正确语法是什么
|
|