Page 1 of 1
Test for presence of a fact within other fact
Posted: 24 Apr 2023 14:12
by JoopvB
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?
Re: Test for presence of a fact within other fact
Posted: 24 Apr 2023 15:41
by tatewise
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.
Re: Test for presence of a fact within other fact
Posted: 24 Apr 2023 16:03
by JoopvB
Thanks Mike!