what I am trying to do is very simple: if (@nCountCOM < @nMaxCOM) {
to do}. I set nCountCom =0, nMaxCom =1, but this if word just doesn’t seem to work. anybody has any idea?
this is the piece of my xlate
{ { OP COPY }
{ ERR 0 }
{ PRE {
set nCountCOM 0
set nCountINJ 0
set nCountDIS 0
set nMaxCOM 1
set nMaxINJ 5
set nMaxDIS 10
#echo nCountCOM:$nCountCOM
#echo nMaxCOM:$nMaxCOM
}}
{ IN @null }
{ OUT @null }
}
{ { OP ITERATE }
{ BASIS 4(0).DG1 }
{ VAR %s2 }
{ TYPE segment }
{ BODY {
{ { OP COMMENT }
{ COMMENT {TODO: Insert new actions here} }
}
{ { OP IF }
{ ERR 0 }
{ COND {@nCountCOM < @nMaxCOM} }
{ THENBODY {
{ { OP COMMENT }
{ COMMENT {TODO: Insert new actions here} }
}
{ { OP COPY }
{ ERR 0 }
{ PRE {
echo success
}}
{ IN {} }
{ OUT {} }
}
}}
{ ELSEBODY {
}}
}