I\'ve needed to loop through lists with vbscript and have found that using the split function can make this a very easy task to accomplish. Below I\'ve split a list with the comma as a delimiter into an array and then loop through the array and output the results.
<%
mylist = "and,or,if,but,else"
myarray = Split(mylist,",")
for i=0 to ubound(myarray)
Response.write myarray(i)&"<br>"
next
%>
This will output the following:
and
or
if
but
else