Is it possible to use something like ternary operator inside a blueprint file. In my note.yml I have a toggle (pinned) that can be true | false. I would like to show this status of the toggle in the blueprint for the pages section (see below in the “info” line). But the current syntax doesn’t show anything:
Nope, there’s no flow control in the query language. I think the idea is to keep it as simple as possible and move every kind of logic into the model. Actually you probably want to have something like a panelInfo function in the model and also move the date stuff there.
Otherwise, if you really want to, I guess you could create a custom field method in a plugin that does your logic, then use it in the blueprint like this