Looking for how to create a custom column based on a tag
I would like to create a custom column that works this way:
If a book has a specific tag (in this case "First"), make the column that tag name.
Otherwise, make it the series name if one exists.
Otherwise, make it the string "Uncategorized".
I know how to do all of this except for checking for a specific tag on a book that might have more then one tag.
{:'first_non_empty(field('tag'), field('Series'),'Uncategorized')'}
I need to replace field('tag') with something that will look for the specific tag, but I have no idea what to put in instead.
Any advice or help would be appreciated.
Thanks.
|