Did it now using: wrapItemAndSub.stdWrap.cObject = CASE wrapItemAndSub.stdWrap.cObject { key.field = layout default = TEXT default.value = <li class="defaultStyle">|</li> 1 = TEXT 1.value = <li class="greenStyle">|</li> and so on... }