Value switch:
<?[Expression]| Show this if true | Show this if false
[Expression] is the first piece, Show this if true is the second piece and Show this if false is the third piece.
<?[Date][Desc][Place][PlaceDetails]|[person:first] died< [Desc]>< [Date]>< [PlaceDetails]>< [Place]>< [Person:age]>|[person:first] has died>.
Expression: [Date][Desc][Place][PlaceDetails] RM checks to see if any of those fields have entries. You can have all the fields in the expression or only the ones you want checked.
True, print this: [person:first] died< [Desc]>< [Date]>< [PlaceDetails]>< [Place]>< [Person:age]>
False, print this: [person:first] has died
Gender switch:
<%Male|Female|Unknown
<%[person:full]<, son of [Desc],>| [person:full]<, daughter of [Desc],>|[person:full]<, child of [Desc],>> was born< [Date]>< [PlaceDetails]>< [Place]>.
Male, print this: [person:full]<, son of [Desc],>
Female, print this: [person:full]<, daughter of [Desc],>
Unknown, print this: [person:full]<, child of [Desc],>
Rest of the sentence: was born< [Date]>< [PlaceDetails]>< [Place]>.
Parents are entered into the description which I have enabled for the Birth fact..
See the Help, Sentence Template Language article for adding different Sharee roles to the Principle's sentence for each switch.
Didn't you find it complicated to get the sentences how you wanted in TMG when you first started using it? Everything is complicated when learning a new program.