How can I put a boolean type in an if condition

Hi, I have “Path exists” activity and the output is saved in an variable. I wan to put that variable in an if condition. If the file exists I want to do something.

How cand I put that in if?

ExcelFileExists is True or ExcelFileExists.toString=“True” or ExcelFileExists.toString.Equals(“True”)

I don’t know which one is the best option to use without errors.

you can simply use

IF ExcelFileExists

or you can use

If excelfileexists = True

Please mark this as solution :slight_smile:

3 Likes

Hii @adrianab.98

The variable “ExcelFileExists” is already a boolean type variable , So simply use this variable in If condition section.

Thanks,
Armila

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