sorry computer went funny.

I think perhaps have been sloppy in explaining. I have a script currently with:

if @wksta = "ws****1"
do this
else
do this
endif

if @wksta = "ws****2
do this
else
do this
endif

which serves a purpose for another app. this then repeats about 4 hundred times and the ws number is unique every time. I want a script to read all these WS values and export them on their own to a text document seperated by a comma (preferably).

Hope that is clearer