How to display a block if a user does NOT have a selected role? I am thinking this has been solved elsewhere, but I haven't found anything.

I am looking for a way to display a block if the current user doesn't have a role. So, whilst the typical permissions allow a block to be displayed to everyone (by not selecting anyone) or to users with specific roles (by selecting a role), I need the inverse, displaying where the user doesn't have a selected role.

DO you have any ideas?
In global variable $user are stored all roles that current user has. So in template.php or template suggestion files you can check if your targeted role is in $user-&gt;roles and display block if not.