Conditions
Last updated on
30 January 2022
Rules provides the following Conditions, organized by category. (The machine name of each condition is shown in parentheses.) Rules Essentials and many other modules also provide Conditions for Rules - if you have one of those other modules installed on your site you will see those additional conditions show up in your list.
You can see all the conditions available on your site with
drush rules:conditionsCore Rules Conditions
- Data
- Data comparison (rules_data_comparison)
- Data value is empty (rules_data_is_empty)
- List contains item (rules_list_contains)
- List Count Comparison (rules_list_count_is)
- Text comparison (rules_text_comparison - Entity
- Entity has field (rules_entity_has_field)
- Entity is new (rules_entity_is_new)
- Entity is of bundle (rules_entity_is_of_bundle)
- Entity is of type (rules_entity_is_of_type) - Node
- Node is of type (rules_node_is_of_type)
- Node is promoted (rules_node_is_promoted)
- Node is published (rules_node_is_published)
- Node is sticky (rules_node_is_sticky) - Path
- Path alias exists (rules_path_alias_exists)
- Path has alias (rules_path_has_alias) - User
- User has entity field access (rules_entity_field_access)
- User has role(s) (rules_user_has_role)
- User is blocked (rules_user_is_blocked)
Contributed modules that provide Rules Conditions
Condition to check path - contains, regexp
- https://www.drupal.org/project/pathrules
Rules Conditions provided by Rules Essentials
- Path
- Path contains text (rules_path_contains_text)
- Path text comparison (rules_path_text_comparison) - System
- Site is in maintenance mode (rules_site_is_in_maintenance_mode)
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion