Condition "if" function for frontmatter variable #1375
-
I have a simple dataview (with the cards addon) that outputs a table for my book database. The frontmatter of the book notes include I'd like to implement a field (possibly in the same line as the rating?) that would show a little icon, corresponding to the respective book's medium. Is this possible? Maybe some sort of if-function? Or an alias that just replaces the medium value with a corresponding icon? Thanks! This is my table:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Your best bet would be the |
Beta Was this translation helpful? Give feedback.
Your best bet would be the
choice()
function but for larger custom maps like that, you may want to use IIFEs like in #971 .