Hello,
Removing occurrences inside a forentity for the same entity is described as not recommended in the documentation.
E.g.:
forentity "ENTITY1"
remocc
endfor
The following code wouldn't achieve much on its own, but is the general act of changing vList inside the forlist also unsupported or not recommended? I have seen similar code in use and while I think it looks risky, I'd like to know if it is actually supported or not.
while (vList != "")
forlist vItem, vIndex in vList if (<condition>)
delitem vList, vIndex
break
endif
endfor
; More code
endwhile
Equally, items could be added to vList within the loop, instead of being deleted, is this also unsupported?
If unsupported, could this be added to the documentation so that this would be clear to developers?
Thanks.




