Published:
Overview
The Event Switcher action allows you to execute different Views or Actions based on a variable's value, such as output from a PHP action or database query. You can define multiple expected values and assign corresponding Views or Actions to each event. This enables flexible, conditional logic in your automation or application workflows.
The Event Switcher action can help you run different Views/Actions based on the value of a specific variable, you can define different Views/Actions for each expected value
- We have a PHP action returning the value "yes", your action may return anything else like a Read Data action returning values from the database.
- We use the PHP action value as the Switch Value, we use the shortcode {var:php_action_name} for this, which is {var:php25} according to our setup.
You could also use a field value like {data:field_name} instead - Our action returns only "yes", but you may define any number of expected values you need.
- You can drag the Views or Actions you need in the appropriate Event.


Comments: