The book note template looks like this:
--- cssclass: bookentry Author: Status: Format: Location: Genre: SeriesName: SeriesNumber: --- >[!Metadata] >**Author:** `= this.Author` >**Status:** `= this.Status` >**Format:** `= this.Format` >**Location:** `= this.Location` >**Genre:** `= this.Genre` >**Series:** `= this.SeriesName` : Book `= this.SeriesNumber`
I’ve tried various phrasings of if statements to try to only output that last line if SeriesName has a value, but I haven’t been able to get the grammar right. I tried looking through Substack, but I’m just not super clear on how to translate general JS grammar into something inline that Obsidian understands.
What I really want is for the final “Series” line in the callout/summary to only appear if there is data for the “SeriesName”. I’m just not sure how to make it happen!
I could also totally live with this if the “Series:” pair in the callout summary is just blank (or has the autogenerated dash). (So the colon and “Book” word and and SeriesNumber didn’t appear if there is no SeriesName.)
Thanks so much!