Testing for Field Names

8 views
Skip to first unread message

Rick Lach

unread,
Mar 15, 2024, 10:33:19 AM3/15/24
to Gedcom Publisher
In one of my paid sites, I often run across field names that will appear in one record but be missing from another record. I want to be able to test if the field name actually exists and if it does not exist to move on to the next step. Here is the code I am using:
<<[?:Subject 1 Age]>|[?:Subject 1 Age=maj] (age of majority)| (a minor)>

If [Subject 1 Age] does not exist it returns false and I am left with the output (a minor) where the output should be null because the field name does not exist. I am, as always, open to suggestions on how to solve this bit of code.
Rick
Reply all
Reply to author
Forward
0 new messages