{pdict.Product.custom.smcp_shortTitle +'-'+ ${(pdict.Product.primaryCategory!= null? pdict.Product.primaryCategory.displayName: (pdict.Product.categories.length &gt; 0? pdict.Product.categories[0].
${pdict.Product.custom.smcp_shortTitle + ' - ' + ${(pdict.Product.primaryCategory != null ? pdict.Product.primaryCategory.displayName : (pdict.Product.categories.length &gt; 0 ? pdict.Product.categories[0].displayName : ''))} + ' - ' + Resource.msg('global.storename', 'locale', null)}