Hi Geethaka,
I write the documentation for Survey123, so I'm the one that has to apologize here. Unfortunately, for multiple reasons, the documentation for conditional statements didn't make it in time for the 2.8 release. The full documentation will be in the next release, but here's a grab that should hopefully get you started:
Elements of a report can be shown or hidden conditionally through the use of if statements. The if statement can be used through entering an expression into the starting placeholder ${if expression}, with ${/} denoting the end of the conditional segment. Some examples of if statements that could be used to hide parts of a report are:
- ${if photo1} would display the section only if the photo1 question has been answered.
- ${if integer1>0} would display the section only if the answer to the integer1 question was a positive number.
- ${if ((geopoint | getValue:"x")>0)} would display the section only if the geopoint is in the Northern Hemisphere.