differs(var)
Takes as input a variable
of any type; returns 1 if the value in the current row is different
from the value in the previous row, and 0 if they are the same.
If the current row has any bad status, the result is Error; if the
current row has a good status but the previous row has a bad status,
the result is 1.
Provide Feedback