Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Array missing value in attribute how to identify has_content?

edited Oct 20, 2019 4:28AM in Digital Assistant & Mobile 2 comments

Summary

Array missing value in attribute how to identify has_content?

Content

I have an array "detailsLines" returned by custom component , it is possible that Description attribute may not be present I am trying to catch that and struggling to make it work, below the syntax i am using, what is i am possibly missing

 

<#if detailsLines.Description.value?has_content> ${detailsLines.Description}\n <#else>no description</#if>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!