#set($versionList = ["basic", "silver", "gold", "platinum"])
#set($itemList = $dotcontent.pullRelatedField($!{ContentIdentifier}, "SoftwareFeatures.items", null, 0, null))
#foreach($item in $itemList)
#set($itemVersionList = $contents.getEmptyList()) #* Array of versions for each Software Feature *#
#set($itemVersionListMap = $contents.getEmptyMap()) #* Hashmap of versions for each Software Feature indicating true/false *#
#foreach($version in $item.versions) #* Get versions from content instance and add them to the array of item versions *#
#set($tmp = $!itemVersionList.add($!{version.key}))
#end
#foreach($prop in $versionList) #* Loop through master version list (which is ordered appropriately) *#
#if ($itemVersionList.contains(${prop}))
#set($tmp = $!itemVersionListMap.put($!{prop}, "true")) #* Put version if HashMap with "true" value *#
#else
#set($tmp = $!itemVersionListMap.put($!{prop}, "false")) #* Put version if HashMap with "true" value *#
#end
#end
#end
itemVersionListMap: $itemVersionListMap
OUTPUT
itemVersionListMap: {gold=true, platinum=true, silver=true, basic=true}