ActiveCampaign Forum

How can I use Multiple IF/Else in a message variable


#1

We want to send emails within an automation that appears to come from one of our sales managers. Each manager is designated as an owner in the contact’s record. I want to create a Message variable that displays the right signature based on the value of the owner field from the contact record.
To illustrate:
%IF $owner == ‘Bob’%
Show Bob’s signature
%IF $owner – ‘Jane’%
show Jane’s signature
%IF $owner – ‘Bill’%
show Bill’s signature
%ELSE%
Company name
%/IF%
(That doesn’t work)

Is it possible to have multiple “If” clauses within a single IF/ELSE? If so, what is the syntax?


#2

You can nest the IF Else’s, like so:

%IF $owner == ‘Bob’%
Show Bob’s signature
%ELSE%
%IF $owner – ‘Jane’%
show Jane’s signature
%ELSE%
%IF $owner – ‘Bill’%
show Bill’s signature
%ELSE%
Company name
%/IF%
%/IF%
%/IF%


#3

Did this actually work for anyone?