mapflow allows a block of code to be executed once for each item in a dictionary. Note that the order of iteration is not guaranteed given the nature of dictionaries. Loops can also contain more nested loops inside them.
.values()on the source dictionary.
mapflow is as follows:
key- the newly created property where the iterated key is stored
value- the newly created property where iterated value is stored
statement- statement to be evaluated to retrieve data for the iterator. Dictionary is expected otherwise an error is thrown
mapflow be used to create lists, menus, and similar structures from sourced data. Let's assume we have a variable
attributesdefined that contains following data:
attributeValuewhere each key and value of the dictionary get stored in each iteration:
attributeValueis different, resulting in the following output: