celeron895
Programmer
Hello. I have an array consisting of boolean values. I need a validation script to tell if the array consists of only consecutive values. For example:
(0,0,1,1)
(1,1,0,0)
(1,1,1,1)
are all correct
whereas:
(0,1,0,1)
(0,0,1,0)
(1,1,0,1)
are not correct
(0,0,1,1)
(1,1,0,0)
(1,1,1,1)
are all correct
whereas:
(0,1,0,1)
(0,0,1,0)
(1,1,0,1)
are not correct