Skip to main content
Problem Solver III
October 23, 2024
Solved

Setting a Variable in Email for use later

  • October 23, 2024
  • 1 reply
  • 105 views

Hey, 

 

I was wondering if I could set a variable to use later on from the person profile in an email, I was thinking something like thing

 

{% points=person|lookup:"Influence.io Point Balance" %}
{% if points %}{{ points }} points{% else %}<a>Join Now</a>{% endif %}

This topic has been closed for replies.
Best answer by annasophiefc

Hi @chrisB 

 

Thank you for posting in the Community

 

You can use this syntax in a text block to differentiate your messaging if someone has points available in their profile.

 

{% if person|lookup:'Points' >= 0 %}

Join Now

{% else %} {{ points }} points

{% endif %}

 

I hope this helps!

 

1 reply

annasophiefc
Partner - Platinum
2025 Champion
October 24, 2024

Hi @chrisB 

 

Thank you for posting in the Community

 

You can use this syntax in a text block to differentiate your messaging if someone has points available in their profile.

 

{% if person|lookup:'Points' >= 0 %}

Join Now

{% else %} {{ points }} points

{% endif %}

 

I hope this helps!

 

Champion & Klaviyo Partner based in Aarhus, Denmark. It is all about communicating the right message to the right people at the right time!