How to work with 4 sets of data and 2 variables?

If the parameters are met for these 4 sets, then light up the led; or if not met, the next set of data received is used instead of the first one.

In other words, the latest 4 sets of data are to be used.

It seems to me that these 2 statements are contradictory