Compare latest number with previous one

F_Dos's icon

How can I compare the latest input number with the prevoius one and if it is the same number then output 0, otherwise output the new number?

Thanks

Source Audio's icon
Sébastien Gay's icon

This seems to work ?

Andy Maskell's icon

This appears to do the trick:

Sébastien Gay's icon

That's real smart, Andy !