Assign zero in datatable for " no result found" in the web browser

Dear Community,

May i know how can i build the workflow to get the result as below?

In the above data, under the column" attachment found" , i use the “get text” to extract the information from web browser and write range into excel file.

However, if no result found, the web browser will not show anything. Hence, i want to make assign zero for those no result found.

May i know how to do it in the Uipath? Below is the screenshot of the workflow i build.

Many thanks


Try below way.

        Outcomes.Contains("One record found")
             Add DataRow - {"Document Number","Found","AttachmentCount")
             Add DataRow - {"Document Number","No result found","0")

Finally use Write Range activity to write into Excel file.