I have an (html based template) in-app message that I want to use liquid script to pass a custom event value to customize values in the modal a user gets.
Basically the in app message tracks a "checkin" event on the user profile and depending on how many of these someone has done, I want the in app message to alter the content based on a checkin count.
For example it should set a dot to the correct value (so if you have 5 checkins 5 dots should be filled in - and the text would say "5 checkins done") - but it returns a null value.
Here's the script in the template (it's in the body):
var checkins = parseInt("{{custom_event.${checkin_completed}.count}}", 10) || 1;
Based on the above if checkins = 5 (pulling from the user), then the template should take that and customize the template and message.
But again, it just returns null.