The if condition may help: Quick reference—ArcGIS Survey123 | Documentation
if(condition, a, b) If true, returns a; otherwise, returns b.
if(selected(${question_one}, 'yes') and selected(${question_two}, 'yes'), 'yes', 'no')
You can nest if expressions. For example:
if(selected(${question_one}, 'yes') and selected(${question_two}, 'yes'), 'yes', if(selected(${question_one}, 'yes') and selected(${question_three}, 'yes'), 'yes', 'no'))
Using the XLSForm if condition can lead into very hard to read expressions quickly. Alternatively, using JavaScript syntax may help you build more complex conditions and keep the code more readable. https://community.esri.com/groups/survey123/blog/2020/08/07/extending-survey123-smart-forms-with-cus...