The syntax is:
iter(j){....}
Imbedded loops are not allowed. You can use iter with the adaptation features of Gfem.
iter