conditional sentences using witness roles?
Posted: 03 Apr 2021 18:01
I'm stuck and could use some help, please!
I'm trying to write a sentence for a sale so that I get one sentence if I have a witness role of "seller", a different sentence if I have a witness role of "buyer" and yet a third sentence if I don't have either of those roles. I tried nested conditionals but I couldn't get that to work here. (I think these brackets < > can have only one set of {curly brackets} inside them??)
I'm almost there with this simple sentence template: {individual}< sold to {role=buyer}>< bought from {role=seller}>< {value}>< {date}>< {_place}>. The problem with it is that I missing a verb when I have neither witness role in use. Sometimes I want the sentence to just say "He sold this thing" without having to know who bought it. (I don't care about the flip version of "He bought this thing" so I don't need the complexity of a 4th sentence.)
I tried playing with TextIf but that didn't work. I think the problem is I was searching for a role like {role=buyer} instead of just a text string somewhere. Is there a way to rewrite my sentence template to give the third sentence if neither role exists? (Or another way entirely to structure the sentence to do what I want?)
I'm trying to write a sentence for a sale so that I get one sentence if I have a witness role of "seller", a different sentence if I have a witness role of "buyer" and yet a third sentence if I don't have either of those roles. I tried nested conditionals but I couldn't get that to work here. (I think these brackets < > can have only one set of {curly brackets} inside them??)
I'm almost there with this simple sentence template: {individual}< sold to {role=buyer}>< bought from {role=seller}>< {value}>< {date}>< {_place}>. The problem with it is that I missing a verb when I have neither witness role in use. Sometimes I want the sentence to just say "He sold this thing" without having to know who bought it. (I don't care about the flip version of "He bought this thing" so I don't need the complexity of a 4th sentence.)
I tried playing with TextIf but that didn't work. I think the problem is I was searching for a role like {role=buyer} instead of just a text string somewhere. Is there a way to rewrite my sentence template to give the third sentence if neither role exists? (Or another way entirely to structure the sentence to do what I want?)