Hi:
This seems like a scenario where you could use ARRAY processing if you need to worry about consecutive values. What about data like this:
1 1 1 1 0 1 1 1 T
2 1 1 0 0 1 1 1 R
3 1 1 0 0 0 1 1 R
4 1 1 0 1 1 1 1 T
5 0 1 1 1 1 1 1 T
6 0 0 1 1 1 1 1 R
7 1 1 1 1 1 1 1 T
8 1 0 1 0 1 0 1 ??
I assume that 7 would be a T, but what about 8 -- it has three 0 values, but not consecutive.
Cynthia