How to traverse all the values of a filed in script

I am writing a script , which need to traverse all the values within a group . But I do not know how to travese