Birthday campaign json not working
Please find the below script which is not working whereas the code seems proper
{% let age1=0 %}
{% let datedifference = dateDiff(toDateTimeOnly(currentTimeInMillis()), toDateTimeOnly(profile.person.birthDate))%}
{% let age1 = absolute(toInt(roundUp(datedifference/365)))%}
{%#if age1=20.0 or age1=30.0 or age1=40.0 or age1=50.0 %} {
"content_id": "content1",
"param1": "{%= titleCase(profile.person.name.firstName)%}",
"param2": "{{age1}}"
}
{%else %} {
"content_id": "content2",
"param1": "{{age1}}"
} {%/if%}