Published on
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.