Feature "Folder Exists"

Hi. Could anyone please explain the feature “Folder Exists”?
The folder path is where to check. I dont understand the save results and how to it. Who do we need to save and where to save?
Thanks

image

@Petrunina_Yulia

It would actually give you true or false…its a boolean output…true if found and false if not

The wording of it might be little confusing

If you check properties it is more clear

image

Hope this helps

cheers

Thank @Anil_G .
How to chose where to save it?

@Petrunina_Yulia

May I know what do you mean where to save?

If you are talking about save result field then the same field is exists field in properties

cheers

@Anil_G
The “Save result” field require us to save the data right? I can’t just leave it black because it need to use the result in if statement.
image

@Petrunina_Yulia

Create a variable of type boolean and use that variable

or you can click on create variable and create the variable there itself and use it

and that is to save the true or false output and can be directly used in if condition

You have already used sortedfolder variable I believe you just need to give that variable in if condition…as if needs true or false that would suffice

and your create folder should go to else condition as sortedfolder will be true if folder exists and it goes to then condition in if

cheers

1 Like

@Anil_G thank very much! It helped me and I was able to finish the exercise.

I have a question about the logic of the task if you can help me. The task was to move files into folders based on its extension like docx, pdf ect. From the attached image what role “Write Cell” plays here? I didnt understand why we do it and where it comes from. Why do we select “Currrent File Name” not " Current File Extension if we are interested in extensions?


h

@Petrunina_Yulia

The switch activity is checking on the extensions …that is where we are identifying different extensions

and write cell I believe is used to write the filename to excel cell,may be there is an excel where you are saving these file names

cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.