I tried to get some basic php if-then-else code to work in custom snippets, but couldn't get it to work... Is there any (other) way to achieve something like this:
[1] Custom Template Snippet: <@ set { var1: 'yes' } @>
[2] Load this to variable in snippet code: $check = '@{ var1 }';
[3] Then populate another (php) variable with some code (for example a fontawesome icon code) based on 'yes' or 'no' values, and use it in the output
Thanks in advance!
Ruud