What does your if substr() mean? Do you want to apply AND or OR logic between the values in the series?
I don't know of a way to do this in a single statement.
My suggestion is to create a new array coupled with a variable series, then loop through both arrays assigning values to the new array. Or, you could couple the existing variable series to an array which would make it unnecessary to assign new values, just do the if thing.
/Linus
Data never sleeps