Insert Picture only if filename contains words in specific fields
I'm new to FileMaker. Here's my current situation:
I have a folder of pictures. These are photos of people, and their names are written in caps as the picture's filename (for example, "JOHN DOE.jpg"). I'd like to import these pictures into their respective container fields within a table, but only when the filename contains the same words as those written in the "First Name" and "Last Name" fields, so I don't end up with records of people with the wrong photo. Moreover, I want to keep the "First Name" and "Last Name" fields as they are, I do NOT want to replace those fields with the filename of the picture.
Can anyone help me with this?