Problem with conditional #8380
-
Can anyone point me in the right direction for an issue I'm having? I assume this must be I'm using the Statamic peak theme. I have a relatively simple component that has a Theme setting via a select field, which changes the colors of the component. Due to the theming, each client has a light logo and a dark logo. As an example, this is working fine.
However, I'd really like to try to simplify this. I'm used to twig, where I would set the variable. I've tried this:
Which doesn't cause errors, but non-the-less fails to return a result. Any advice on how to approach this the Antlers way, or how to debug would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Use single braces inside tags...
|
Beta Was this translation helpful? Give feedback.
-
Bingo, @ryanmitchell. Docs on that are right here: https://statamic.dev/antlers#tag-parameters |
Beta Was this translation helpful? Give feedback.
Use single braces inside tags...