Conditional Text for Witnesses
Posted: 20 Jul 2023 22:03
I was hoping to use {=TextIf(%FACT._SHAR[1]>SEX%= "Male", "wife", "husband")} in the following witness sentence:
'...to visit {him/her} and {his/her} {=TextIf(%FACT._SHAR[1]>SEX%= "Male","wife","husband")}' where the Witness was the person being visted to return:
'...to visit him and his wife.' if the witness was male and
'...to visit her and her husband.' if the witness was female.
However, although this works for male witnesses, it returns '...to visit her and her wife.' when the witness is female!
I would appreciate any help in getting the syntax right.
'...to visit {him/her} and {his/her} {=TextIf(%FACT._SHAR[1]>SEX%= "Male","wife","husband")}' where the Witness was the person being visted to return:
'...to visit him and his wife.' if the witness was male and
'...to visit her and her husband.' if the witness was female.
However, although this works for male witnesses, it returns '...to visit her and her wife.' when the witness is female!
I would appreciate any help in getting the syntax right.