I need to make a condition that use a variable as the array key: $arr[$var]
Couldn't find the right template syntax for that.
Few ways that I've tried and doesn't worked
{xen:if $arr.$var, 'my content..'}
{xen:if $arr.{$var}, 'my content..'}
{xen:if $arr.{xen:raw $var}, 'my content..'}
Couldn't find the right template syntax for that.
Few ways that I've tried and doesn't worked
{xen:if $arr.$var, 'my content..'}
{xen:if $arr.{$var}, 'my content..'}
{xen:if $arr.{xen:raw $var}, 'my content..'}