I was trying to do an integer comparison to %node:status, which should be 0 for unpublished and 1 for published. This failed, since %node:status holds a string, not an int. The patch in comment #1 forces the values entered in the Integer comparison fields to be evaluated as ints.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

whitefluffy’s picture

Attaching patch.

whitefluffy’s picture

Status: Needs review » Active

On a second thought, this might not work the way I intended. When running the field %node:status through intval, it returns 0, even if the field is published or not. My issue with the %node:status work when I remove the intval and compares the field with true or false.

So, forcing the fields to an int might not be such a good idea after all. Thoughts on this issue?