views:

46

answers:

1

I was thinking of the best way of adding a class of 'featured' (in classic ASP), in this sequence of records from a DB: N,Y,Y,N,N,Y,Y

The sequence is: 2 3 6 7 10 11 14 15 18 19...

I already have a count (starting from 1 going for each record)

Many thanks!

+1  A: 

You can search for a specific pattern in your sequence.

In this case, it looks like if x mod 4 = 2 or x mod 4 = 3, it is featured.

Fortega