For each cms in signlist IF prev is empty and curr not empty THEN print "Activated", ID, curr IF curr is empty and prev not empty THEN print "Deactivated", ID IF curr not empty and prev not empty and curr not equal prev THEN print "Updated", ID, curr END