in reply to Rolling variable
Hi artperl
For 8 integer-values an array seems to be the easiest (and efficient enough). Please check push for appending a value at the end and shift to remove the first element.
HTH, Rata