Check field is null using Truth Value

Events happening in the community are now at Drupal community events on www.drupal.org.
class01's picture

Hello,

I'm attempting to check whether a CCK field is Null using a Truth Value, the code i'm using is as follows:

[node:field_facebook-formatted]!=""

But everytime it runs it returns TRUE as it performs the action.

Does anybody know how to resolve this.

Many Thanks,

Jonathan

Comments

Can anybody help with this?

class01's picture

Can anybody help with this?

Check variable content with Devel

itangalo's picture

If you install the Devel module, you can use the "Devel" tab to view the content of the field. Check how it is formatted, and you'll probably get a hint on how to use the TRUE value.

If nothing else helps, try doing a PHP check on the field, doing the is_null()-function.

//Johan Falk, NodeOne, Sweden

http://stackoverflow.com/ques

****Me and Drupal :)****
Clickbank IPN - Sell online or create a membership site with the largest affiliate network!
Review Critical - One of my sites

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: