Hi @keerthi,
You could do the same by following the instructions outlined in the image below:
In the survey tab of your xlsform:
Data entry screen as seen in Enketo: for a condition not satisfying
Data entry screen as seen in Enketo: for a satisfying condition
Reference xlsform:
If Statement.xlsx (10.6 KB)
Have a great day!