See also CombineText_AB, ExistsText, NotExistsText and ForceText.
=CombineText("in the year ", %INDI.DEAT.DATE:YEAR%, " A.D.", "<year not known>")
If the data reference in parameter 2 returned 1971, this would output the text
in the year 1971 A.D.
If the data reference in parameter 2 returned nothing, the function would output
<year not known>