Drop message if two fields contain equal value

I am trying to drop an entire message if two fields contain the same value.
Would it be possible with pipeline rules? What would be an example to so?

rule "There can be -- only one"
when
  to_string($message.my_field) == to_string($message.your_field)
then

 drop_message();

end
1 Like

@tmacgbay
Thanks! That worked.

Great! Mark as answer if you have a chance! :smiley:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.