To capture MessageBox output?

How to capture output of Messagebox buttons?
For e.g to buttons are Yes/No, how to capture which button is pressed and based on Yes/No take some action

Assign the output of message box to a string variable.
It contains “Yes” or “No”

HI @Himani

Just create a variable in the output of the message box and you will be good to go.

image

Thanks, I can do it successfully.