CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Dealing with null token values
Pages: [1]

Author Topic: Dealing with null token values  (Read 562 times)

amb922

  • Guest
Dealing with null token values
December 19, 2010, 03:03:05 pm
Hi -

Using action tokens in my mailing, I would like to do this:

if contact.first_name is not null

  Dear {contact.first_name},

else

  Dear Supporter,

Is this possible?

Thanks.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Dealing with null token values
December 19, 2010, 03:45:58 pm

check:

http://civicrm.org/node/637

U'll need to implement that via a hook

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

amb922

  • Guest
Re: Dealing with null token values
December 19, 2010, 05:34:31 pm
Thanks!  Worked perfectly.  -- Aaron

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Dealing with null token values

This forum was archived on 2017-11-26.