Help with Mark Duplicate Script


I’m trying to use “Mark Duplicate” script in my table but I didn’t get how to use it. I want to check for 2 specific field for duplicate not the complete record. How should I do that? I can’t find accessible guidelines for dummies…