Conditional keywords: how to compare metadata field values

I'm trying to build a condition that will test whether two metadata fields have the same value, ie if startdate = enddate, print x else print y.


I figured I could do this by setting up a conditional keyword as follows:



Condition Keyword Regexp

Keyword Name is_one-day_event

Keyword is true if: The following keyword matches the specified pattern



Options

Keyword asset_metadata_Events.enddate

Pattern asset_metadata_Events.startdate



But this doesn't seem to work. What am I doing wrong?



Many thanks

You might need the % symbols around the keywords. Though, I'm not near a Matrix install at the moment to test this. :slight_smile: