Forum Discussion
SMS & Using liquids for links
Hi Kelly_Grote . Can you share an example of what you are trying to do?
I just tested this code and it worked, I was able to send an SMS to my iOS device only.
{% if {{targeted_device.${platform}}} == 'ios" %}
iPhone
{% else %}
Not iPhone
{% endif %}
Thank you! I will see if something like that works. This is what I was doing per Braze recommendation but it is not working right.
{% assign most_recent_app_version_var = {{most_recently_used_device.${os}}} %}
{% assign most_recent_app_version_1 = {{most_recently_used_device.${model}}}
%}
{% if most_recent_app_version_1 contains 'iPhone' %}
🚀 IPHONE fieldview://reports
{% elsif most_recent_app_version_1 contains 'iPad' %}
🚀 IPAD fieldview://reports
{% elsif most_recent_app_version_var contains 'Android' %}
🚀 ANDROID
https://climate.com/ul/reports
{% else %}
{% abort_message('User does not have a compatible OS') %}
{% endif %}