Skip to main content
Nintex Community Menu Bar

how do i verify the format of a file in the folder using the if else method?

  • December 18, 2020
  • 6 replies
  • 4 views
  • Translate

25573i63869D006F72E664.jpgI would like to get the name of the excel file in the format ".xls" only. but so far it will return me the file in the format "xls" and 

"xlsx". I have tried using the if method but it returns me files in xls and xlsx which isn't the outcome i want.

 

So far here is what I have done. I would like to use the if else command

Did this topic help you find an answer to your question?

6 replies

You can use the "match regular expression" condition inside the if statement, and then filter the string with .xsl extension only.

Translate

Translate

  • Author
  • 1 reply
  • August 29, 2022

I have tried this method but still, it returns me all files. (Both xls and xlsx.) and not what i wanted which is only xls

Translate

I showed you an example of how you can check if the file is in the format you need.

 

In your case, you need to do a split to a single file, and then to check the file format in a loop.

Translate

leon_romansvans

You can use .xls

Translate

leon_romansvans

And use expression if contains xlsx

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings