Hi All,
I've got a constant stream of numbers that are either 1 or 0. The stream is always just one of those numbers repeating, until it switches to the other number, vice/versa... something like " 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1..." etc.
When the number changes, I would like to output that new number ONCE. So, instead of giving me "0, 0, 0, 0, 0, 0..." I would just like "0"... and it would change to "1" when the number stream changes to a repeating "1". I'm sure this is super easy, but i'm having trouble coming up with a solution
Thank you for taking a look at this
-Sebastian