Skip to main content
Solved

Setting a Variable in Email for use later

  • October 23, 2024
  • 1 reply
  • 28 views

Forum|alt.badge.img+4
  • Problem Solver III
  • 36 replies

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 %}

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!

 

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

annasophiefc
Partner - Platinum
Forum|alt.badge.img+22
  • 2025 Champion
  • 100 replies
  • Answer
  • 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!