Posted by wipeout_dude on May 10, 2012 at 9:26pm
Is there any way through components or other modules to create IF/THEN constructs in actions?? (or at least simulate them)
For example..
If I had a content type with a select list of say 10 items.. Based on the selection I need to run a rule to set something..
The long way would be to create 10 rules each reacting on a different option in the select list..
Is there an easier way to do this?
Comments
Rule sets
I think rule sets is the closest thing to what you're after. They allow you to set a number of rules (if/then cases) after each other.
You find the rule sets in the components tab for Rules, and once you have set a rule set up you can call it as an action in a standard reaction rule (and from other places as well). This place might help to get your head around using Rules components: http://skillcompass.org/topic/rules-components
(Technically speaking, you have to use if/then statements – and you'll need to do as many if statements as you have cases. But you can bundle them together, so you won't have to create ten different reaction rules at least.)
Good luck!
//Johan Falk, Sweden
Thanks Johan.. I knew I would
Thanks Johan.. I knew I would have to get my head around components sooner or later.. Probably like views contextual filters and page manager, they are great once you know how to use them but getting there can be a steep learning curve..