How to handle Radio button from Excel

I’m updating data from excel. I’m unable to select either Female or Male.
I recorded the script with Male.
It is selecting only Male though i have Female in excel.

Please do the needful.

Use If condition and use Male click in If condition and Female click in else condition irrespective of what is on the screen.

If (ExcelValue = “Male”)
Click Male
else
Click Female

Thanks Vaidya. For Male ad Female If will work if we have more than 2 what is approach. Can you please tell.

For e.g if we have High school, graduation, PG and Phd

Thanks
Ravi

You can do that by using Find Element and passing variable Aaname value( from excel) into selector, once found use click activity.

You could still use nested if

Thanks. Nested if activity in UIPath. Please