Question

how to check file extension

  • 10 July 2023
  • 2 replies
  • 174 views

Badge +3

how to check the extension of file for pdf


2 replies

Badge

Hey,

 

You are doing it wrong. If you want to check the file format you need not use “File extension” option under If Statement..

You can just use the String Condition in If statement

In your source value you will write $currentFile{extension}$, your operator will be ‘Equal to’ or ‘Not equal to’ (based on your requirement) and your Target value will be pdf. 

 

Hope it helps.

Userlevel 3
Badge +6

@lathab You can use it like this, it is expecting a list variable not string:

 

 

Reply