I’m trying to use the if_eq
helper to change the display of item info based on the metadata associated with each item.
I know I can display the value of a metadata property using the displayJsonValue
helper, for example {{ displayJsonValue this.metadata.some_info }}
will output the value of some_flag
, but I would like to make that output conditional. Something like:
`
{{ #if this.metadata.some_flag }}
{{ displayJsonValue this.metadata.some_info }}
{{ /eq }} ` Does anyone know how to do something like that?Philippe