Jens, you are again 100% correct. [Smile]

I had to add an extra "$" to make an evaluted variable back into a variable.

code:
	$x="a","b","c"
$=""
for each $y in $x
if len($c)<3 and $y="c"
$c=$mask[0+$c]
else
$z=execute('for each $z in split($'+$y+',".") $=$+$nums[0+$z] next $'+$y+'=$ $=""')
endif
next

_________________________
Home page: http://www.kixhelp.com/hb/