Filter under condition based on value checkbox of current user profile I use Views 3.x and Views PHP module.

The task. Make Views filtering criteria that would make two different actions, depending on status of checkbox (TRUE or FALSE) of current user's profile.

Description. Logic diagram:

IF checkbox current user == TRUE
THEN display taxonomy terms, tid == New
ELSE display taxonomy terms, tid == array('New', 'Archive', 'Old', ...) // 50+ taxonomy terms


Please help me.
As you can already display the taxonomy terms from the ELSE part of your logic diagram in a View, it is quite easy to achieve what you want with a template file for your View. Find the suitable template here and adapt the code underneath, where I assume that you use views-view-field--YOUR_VIEW-YOUR_BOULEAN_FIELD.tpl.php:

global $user;
if ($user-&gt;field_YOUR_BOULEAN_FIELD['und'][0]['value'] == 1) {
  $output = taxonomy_term_load($tid)-&gt;name;
}


The variable $tid for taxonomy_term_load() should be the tid of your taxonomy term New.