Complicated Salutation s-tag coding

Options
Hello,



We are trying to send out an email that first chooses the Salutation (casual), and if blank, chooses First Name, and if both blank, writes 'friend'. The code below is as far as we have gotten but only the 'friend' option seems to be working. Any assistance greatly appreciated. 



Thank you!

Christa



<convio:choose>



 



<convio:when title="Not empty" test="nempty" selected="selected">



<conviop><convio:session name="1" param="salutation_casual"></convio:session></conviop>





<convio:then>



 



<convio:choose>

 



<convio:when title="Not empty" test="nempty">



<conviop><convio:session name="1" param="first_name"></convio:session>,</conviop>



<convio:then>



 



<convio:choose>



<convio:when title="Not empty" test="nempty" selected="selected">





<conviotherwise title="Empty">friend</conviotherwise>
Tagged:

Comments

  • Christa --



    You might try something like this:



    [[?x[[S1:salutation_casual]]x::xx::[[S1:first_name:Friend]]::[[S1:salutation_casual]]]]



    I haven't tested it, but it looks like it would accomplish what you are trying to do.
  • Thank you for sending Tracy! We are now having some issues with our test messages, but the first name piece of this definitely works.



    Christa

Categories