Page 1 of 1

Can i have a default value for a binding if none is found?

Posted: 02 Feb 2013, 01:56
by nzdreamer55
Is there a way to have a default binding if none is found.

Let's say my format expression {source} isn't found for a file. Can I have my format Expression drop in something like XXXXX or None?

Thanks
-S

Re: Can i have a default value for a binding if none is foun

Posted: 02 Feb 2013, 02:46
by rednoah
Right now you can do this:

Code: Select all

{try{source}catch(e){'OTHER'}}
I'll add this for convenience with future releases:

Code: Select all

{c{source} ?: 'OTHER'}

Re: Can i have a default value for a binding if none is foun

Posted: 06 Mar 2013, 01:04
by TehBotol
Thanks rednoah
Seem filebot only recognize WEB-DL but not WEB.DL