Panels visibility rule: Hide if value is in the query string I am trying to use a visibility rule in Panels to hide a block based on whether the query string has a parameter (value=5) or not.

Panels provides a String: URL path visibility rule by default, but this seems to only work for the URL path, not the query string.

Is there a way to add a condition to show/hide the block based on one of the parameters in the query string?
Using PHP code is not recommended unless absolutely necessary. You never want to store the PHP code in database, you do that in the modules :-)

I would recommend you to write an ctools access plugin for the same; check the logic there and give access to users accordingly.

Benifits:


The code is more maintainable, and can be version controlled.
You could reuse the same visibility rule throughout the site wherever necessary.


Please check my answer here, for an example of a working access plugin.