Greetings,

I am looking for a way to be able to invert the truth value on a rules condition after it has been checked.

I know how to input a check box on the page using hook_form_alter(), however are there any hooks which will let me edit the truth value before it is validated.

Example.

User clicks checkbox to invert condition Truth Value.
The Rule is Triggered.
Condition is checked and returns TRUE.
a Hook is implemented which takes the TRUE value and sets it FALSE.
FALSE is then returned to the rule.
Rule Fails.

This this even possible?

Thanks.

Comments

LeeUDO’s picture

Status: Active » Closed (fixed)
Shabbir’s picture

Hi,

I am using rules version "7.x-2.6" and i cant find the option "check for truth value" in adding an action. I have a rule made in Drupal 6 and now i want to apply it in my Drupal 7 migrated site. Can you please help me out for the same.

Regards,
Shabbir