hm, I don't think this is a bug even I am a lot in favor of it. Bug is considered smth delivered not working as described. This is a missing functionality, yes.
There are a couple of solutions Florian could apply unless he finds smth better.
- New command readoutputto ""
It would bring the value of tag already filled before (after outputto "") to the working area.
I have requested several times this feature (which I think will increase the power of WS) but I have not seen any reaction yet. Last time requested in this post [WS] HELP !!!.
# Coverurl outputto "coverurl" json_foreach "images" json_select "type" if "secondary" readoutputto "coverurl" # <<<<<<<<< new code if "" # <<<<<<<<< new code json_select "uri" sayrest endif # <<<<<<<<< new code endif json_foreach_end - New command json_foreach_exit (as you mentioned)
It fits your example but could be insufficient for other cases. E.g. fill the tag only the first time but do not leave the loop.
# Coverurl outputto "coverurl" json_foreach "images" json_select "type" if "secondary" json_select "uri" sayrest json_forech_exit # <<<<<<<<< new code endif json_foreach_end</li></ol>