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?
image

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.
image

Many thanks

@SH_94

Try below way.

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

Finally use Write Range activity to write into Excel file.