Thanks for the replies. I think my mistake was assuming that "1" meant "true" when if fact it means "index 1". Whe I tested for "== 1", since "Source Height" was coincidentally at index 1 it returned something which looked like it worked. Thanks for the clarification. And thanks for the suggestion to use "in" that is much more readable. Pete