Views Conditional is a simple module that allows you to define conditionals (if xxx then yyy)
with fields in views. Conditions include:

  • Equal To
  • Not Equal To
  • Greater Than
  • Less Than
  • Empty
  • Not Empty

Views conditional allows you to output text based on the result of the condition.

---

How to use Views Conditional in your Views:
1. Create a view. Add some fields under "FIELDS".
2. Click on "ADD" next to fields. Scroll down to "Views: Views Conditional", probably found near the bottom of the list.
3. Add and configure fields...
4. Choose a field to run a condition against, and provide values accordingly.
5. Save, views conditional handles the logic and returns as specified.

NOTE: In D8 alpha release we've updated token format from [token_name] to {{ token_name }}, please update your views accordingly.

Supporting organizations: 
Drupal 8 development and maintainance

Project information

Downloads