Thank you again, Agnius. I'm not trying to be null but I am confused about where the write to excel is supposed to go alongside the %exists% variable. Is it supposed to go inside of the on block error at the bottom? What do you mean by reset %exists%?
I reread your first comment. I understand what you're saying but not how to execute it correctly.
"If the element does not exist, Get details of element in web page will fail. As such, it will not update the %exists% variable, but your On block error will kick in, making it skip the rest of the steps in there and then write to Excel. But the value of %exists% from the last successful instance will always be written to Excel, unless you reset it in the On block error or somewhere else in the beginning of your loop."
Same for this one-
"The action fails, and it will go to the end of the block because of On block error. So, the value of %exists% is either empty until the first report that exists, or is equal to "true" for every report after the first one that does exist."
The set variable %exists% is at the beginning of the loop. Do I put another set variable %exists% within the on block error as well? I tried this out and the robot went through the project numbers but did not click on the link for design report. I disabled the get details of element and it just cycled (pic 1). I don't need the 'get details of element' but without it and just using the 'if web page contains' continues the cycling.

I turned off the if web page contains and used the get details of element. That worked, mostly, except for after it had found a design report and went to search the next project(pic2). It kept the label of 'FALSE' on the project with no design report when it should read 'TRUE' (that there is no design report)(pic3). I think the error now is still the placement of the %exists% variable but I don't understand why. The robot wrote the correct value when there was a report and the set variable is active within the on block error and again under the for each.

Moving the get details element under the for each loop didn't fix the writing error. Looking at the third picture with the excel snippet, the robot started out doing well but after the second false, it erred. The red X's should read 'true' so it worked and then didn't.
