Is it possible to use context variables to either show or not show a specific block depending on an arbitrary attribute value?
Not possible in the current feature set, sorry.
The best workaround I can suggest is, if you’re serving these dashboards us as experience pages, you could do the following:
- Clone the dashboard in question (you can do that from your dashboards list) and remove the block from the cloned version.
- Set up two experience pages, where one serves the dashboard with the block and the other serves the dashboard without.
- When responding to your endpoint requests, serve one page or the other via the Endpoint Reply Node based on the presence of a certain query parameter or context value.