![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/75fb2f64-674b-428d-a382-39fc5da41582.png)
how to compare empty with a string
![](https://uploads-us-west-2.insided.com/automationanywhere-en/attachment/4781a8fc-e6be-4b7f-a66e-a42a64145ed0.png)
Create a string variable and don’t assign any default value, also make it constant. Eg: EMPTY_STRING
You can compare this variable for equality: if $ReceiptReceivedString$ = $EMPTY_STRING$
You can also trim the input value then compare for empty.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.