Select Page

If File Exists Problem

Home Automation Forum Robotic Process Automation WDG Automation If File Exists Problem

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #228605
    Anonymous
    Inactive

    Sorry one more question please. Trying to check if file exists and delete it for fresh start. Does it need end-if? How to get the opposite if file doesn’t exist? I can’t get it working.

    #228614
    Anonymous
    Inactive

    Dhuleep,

    You don’t need an End-If with an If File Exists command, but you do need an If and End-If after it.  The If File Exists command returns a True or False.  You need a separate If block to check those results, which is also why there is no If File Doesn’t Exist command.

    Big picture should look like this:

    Save the Result variable of If File Exists and check it in its own “If” block of code like so:

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.