gearlist operates on holders, like backpacks, not containers (like adding a weapon power to a magic weapon in PF1).
foreach gear in [path to what you're checking] where "candidate expression"
If you're running it from the container, and just looking for all held gear, it'll just be:
foreach gear in this
somestring = splice(somestring, eachpick.field[stkName].text,", ")
nexteach
|