Help with conditional codes to create nested options
Hi there,
I'm wondering if anyone in the community can help me with the code to nest a conditional option in our email salutations.
We generally use a Dear [First Name], however, this doesn't work for businesses and organizations in our system that are entered with the first name “Company” and last name being the actual name of the business.
I'm wondering if anyone can share code or help me write the code for pulling the last name if first name = company, while also having the option to pull first names for non-businesses, and then using “Friend” if both are empty.
Comments
-
@Gabriela Oh
Hi, Gabriela. I think this is what you're looking for, but I welcome a sniff test from others:[[?XXX::X[[S1:first_name]]X[[S1:last_name]]X::Friend::[[?X[[S1:first_name]]X::XCompanyX::[[S1:last_name]]::[[S1:first_name]]]]]]
Thanks,
-Jon1 -
Thanks for your response. I'm having a hard time following. Here's what Luminate Online spits out when you use the conditionals builder.
<convio:choose>
<convio:when title="Not Empty" test="nempty" selected="selected">
<convio:op><convio:session name="1" param="first_name"></convio:session></convio:op>
<convio:then><convio:session name="1" param="first_name"></convio:session></convio:then>
</convio:when>
<convio:otherwise title="Empty">Friend</convio:otherwise>
</convio:choose>Any thoughts on how this could be edited to add the “if first name = company” conditional?
0 -
@Gabriela Oh Delete that stuff and just copy in what Jon posted below. The Content Editor will convert it into the code for you. Let us know if that works.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 208 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 563 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 242 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 779 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)


