The [Map->Values] tag returns an array of values from the map. This tag is useful if the values of a map need to be inspected without their associated keys.
If the map contains no values then an empty array is returned.
[Map->Values]
Use the [Map->Values] tag. This tag returns an array that contains the values of all the keys in the map. The values are ordered in the order they are stored in the map, not in the order they were added to the map.
[Variable: 'myMap' = (Map:
'Red'='#ff0000',
'Blue'='#0000ff',
'Green'='#00ff00'
)]
[Output: $myMap->Values]
(Array: (#0000ff), (#00ff00), (#ff0000))
Tag Link | [Map->Values] | Category | Array |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 6.0 |
Output Type | Array | Security | Tag |
Implementation | LCAPI | Sets | Lasso 7.0, Lasso 6.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft