Pinpoint Template helper

0

I have following script in my template which cause some failure when I run the campaign. If I remove this portion then campaign send emails.

{{#gt Attributes.Length "100"}} You have {{Attributes.Count}} schools {{else}} You no schools. {{/gt}}

If I remove the above text emails are being sent. Properties Length and Count all are there. AWS support says its valid but so far they failed to help. The campaign status says it ran successfully. I cannot see any events posted. Not sure what's happening. Any help is greatly appreciated.

thanks!

已提問 2 年前檢視次數 257 次
1 個回答
0

The #gt helper can only compare like data types. Your script is comparing Attributes.Length (presumably a float or double number data type) against "100", which is a number string. This may or may not be the issue, but it's one I've come across with comparison helpers. You might try it without the quotes around 100 and see if that works.

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南