Posted by henrijs.seso on July 16, 2009 at 8:11pm
I am looking for a way to use sql query in condition of rule - if sql query returns something - proceed with rule, if it returns nothing - skip rule. Can anyone suggest way to go in this case? Thanks.

Comments
Yep, that makes sense. A
Yep, that makes sense. A separate "sql query" condition would be nice. However I think we have to watch out for sql injection, thus best don't allow input evaluation in the query itself but provide a list of arguments where the user can use input evaluation.
feature request
I did little mistake and posted this in issues for Rules (http://drupal.org/node/521640) and i got some help and then i turned this into feature request. We could use pre-created view as condition.