Try this:
PHP Code:
program:
pdate=finish_formatting(
format_date(
field('pubdate'),
'yyyy'),
'',
'(',
') '
);
strcat(
template("{author_sort}/{title}/{author_sort} - {series:|[|}"),' ',
ifempty(
finish_formatting(
field("series_index"),
'0>3',
'',
'] '
),
contains(
pdate,
'101',
'',
pdate
)
),
field('title')
)
It should test if pdate contains "101" and return empty if so.
@theducks why is 1/1/101 the unassigned datetype? Do you have any idea why I have the empty string for an unassigned date? I am using linux if it makes a difference.