Adding a value for a null binding
Posted: 29 Mar 2023, 17:43
Here is my pseudo code.
I am failing at what I want to accomplish. I tried poking around the forums but couldn't assimilate much.
I want FileBot to add [SDR] when a file has no value for hdr. and of course I want to expand on this with more cases.
tried adding '' instead of null... nope
I am failing at what I want to accomplish. I tried poking around the forums but couldn't assimilate much.
I want FileBot to add [SDR] when a file has no value for hdr. and of course I want to expand on this with more cases.
Code: Select all
{
if (hdr==/Dolby Vision/)
{hdr.replace('Dolby Vision','[DV]')}
else
'[SDR]'
}
Code: Select all
{
if (hdr==/Dolby Vision/)
{hdr.replace('Dolby Vision','[DV]')}
else
{hdr.replace(null,'[SDR]')}
}