Found it...It was the script step GetValue that I needed! However it doesn't seem to be getting the values correctly. The first one is right, but every value there after is wrong??
It's the highlight line which is causing issues.
Your script has two variables with nearly but not quite the same name:
Thanks. Phil..Found a couple of other errors as well.