Boolean condition

Hi I have a process that downloads file in from an email and saves the file in a folder and the process reads the file if the process cannot read file I pass the file to a tool that can read the file, now my question is how do I write the condition if the file has been red delete it in the folder it the file has not been red move it to the proposed tool?
I just need an idea on the if condition?

Hi @Joe.Osifo,
I assume that if robot can’t read the file it will throw an error or something. Based on that you could use Try/Catch activity and in case of exception just remove file :slight_smile:

1 Like