Only show block if View or nid has certain term referenced to it
Did you try php code? If you enable 'PHP filter' module, you can add php code under 'Pages restricted to certain pages' option in block configuration and write your code like 

&lt;?php
$relative_path = request_uri();
if (some condition)   {

    return TRUE;
   }


 else
    return FALSE;

?&gt;