Forum Discussion
SarahD
4 years agoKhoros Staff
If I understand the return object, correctly, I think you just have a misleading loop variable name.
what is currently:
<#if occasionData.status == 'upcoming'>
//do some stuff for upcoming events here
<#else>
//do stuff for ongoing events here
</#if>
Should be:
<#if occasionData.occasion_data.status == 'upcoming'>
//do some stuff for upcoming events here
<#else>
//do stuff for ongoing events here
</#if>
Related Content
- 11 years ago