I want to set associative array in volt
{% set tempKey = "Name" %}
{% set tempArray[tempKey] = "Mike" %}
how to do that?
{% set array = ['key': value] %}
Hi, But if the Key is another variable, it's not working
Yeah, you're right, 'cause you can't put a variable like a key. key is a string value, not a variable.
key