各行のコマンドフィールドに基づいてifelseを実行したいのですが、
例えば
If {CommandField=0} Update counter by 1 return counter
else if {CommandField=1} return 'Reporting'
試しましたがエラーが発生しました
stringVar layerType;
shared numberVar layNo;
if({Command.ISREPORT}=0) then
layNo:=layNo+1;layerType:=layNo;layerType
else if ({Command.ISREPORT}=1) then
layerType:='Reporting'; layerType
結果は次のようになります
ISREPORT LayerNo
0 1
0 2
0 3
0 4
1 'Reporter'