* Test for presence of a fact within other fact

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Test for presence of a fact within other fact

Post by JoopvB » 24 Apr 2023 14:12

When I have both a death and burial fact I would like to check in the sentence definition of the burial fact whether the burial fact exists. This to allow me to make the burial sentence dependent on this test.

Any ideas?

User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Test for presence of a fact within other fact

Post by tatewise » 24 Apr 2023 15:41

Yes, use something like this:
{=TextIf( %CUR_PRIN.DEAT%, "Text with Death", "Text without Death" )}

However, remember that you cannot use codes like {individual}, {date}, {place}, {age}, etc, inside function parameters.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
JoopvB
Superstar
Posts: 328
Joined: 02 May 2015 14:32
Family Historian: V7

Re: Test for presence of a fact within other fact

Post by JoopvB » 24 Apr 2023 16:03

Thanks Mike!

Post Reply