Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Array missing value in attribute how to identify has_content? — Cloud Customer Connect
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?

Accepted answer
5
Views
2
Comments
edited Oct 20, 2019 4:28AM in Digital Assistant and 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!