in reply to saving matching pattern with flip-flop operator

Do you really want to use binary OR in the next if condition?