Jump to content
  • 3

File naming shouldn't insert "None" if field data is missing, it should use nothing


Christiaan

Question

We often export multiple files, some of which have a revision numbers and some of which don't have any revision number. 

Files that don't have a revision number get named as follows: 

  • 100-None-Filename.pdf 


But we don't want "None" in our file names. Who would? What we'd like instead is: 

  • 100-Filename.pdf 


So not only do we want it to omit the revision number if that data is missing but we also want it to ditch one of the dashes too, so we don't end up with: 

  • 100--Filename.pdf
Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...