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
- New YourCause Community TEST
- New SKY Community TEST
- New Grantmaking TEST Community
- New Altru Test Community
- New bbcon Community - TEST
- 12 Blackbaud Agents for Good™
- New Raiser's Edge NXT Community
- 7 Blackbaud Community Help
- 218 bbcon®
- 1.4K Blackbaud Altru®
- 409 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.2K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 16 donorCentrics®
- 361 Blackbaud eTapestry®
- 2.7K Blackbaud Financial Edge NXT®
- 680 Blackbaud Grantmaking™
- 598 Blackbaud Education Management Solutions for Higher Education
- 3.3K Blackbaud Education Management Solutions for K-12 Schools
- 952 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 85 JustGiving® from Blackbaud®
- 7K Blackbaud Raiser's Edge NXT®
- 3.9K SKY Developer
- 257 ResearchPoint™
- 123 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 247 Member Lounge (Just for Fun)
- 40 Blackbaud Community Challenges
- 37 PowerUp Challenges
- 3 (Closed) PowerUp Challenge: Grid View Batch
- 3 (Closed) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) 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
- 822 Community News
- 3.1K Jobs Board
- 57 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)


