Assign Key/Value Pair
What does Assign Key/Value Pair do?
Please refer to Using Key/Value Pairs for an explanation of how key/value pairs are used in Proggy.
This directive is used for assigning key/value pairs, such as the following:
north america | canada |
north america | united states of america |
europe | france |
europe | germany |
europe | spain |
asia | china |
asia | india |
How do I use the Assign Key/Value Pair directive?
Once you add this directive, you can add multiple key/value pairs in a single step:
Behaviour of the Assign Key/Value Pair directive
- Key/value pair names and values are not parsed by Liquid before becoming available. This means that the values you enter into there are hardcoded. If you need to dynamically change the values at runtime, have a look at Runtime Variables to see how you can achieve this behaviour.
Example use cases for the Assign Key/Value Pair directive
- For use with For Each Loops