Help with If Then Else Syntax
Posted: 20 May 2020, 01:28
Hey guys I'm trying to make a script to rename and move movies and .srt files but I don't fully understand the syntax to achieve this and can't find any good examples on google that breakdown and explain how to do this.
So as an example I would like movies to be placed like this:
And Subs like this:
My expression is currently:
When I try to save this as a preset in Filebot I get this error message

So as an example I would like movies to be placed like this:
Code: Select all
R:Movies\The Matrix (1999)\The Matrix (1999) - 1080p BluRay x264 AAC 2.0.mp4
Code: Select all
R:Movies\The Matrix (1999)\Subs\2_eng.srt
Code: Select all
R:\Movies\{ny}\{if (ext == 'srt') 'subs\' else '{fn} {ny} - {vf} {vs} {vc} {ac} {channels}'}
