I frequently run into a problem where I want to toggle between two parts of a query or turn part of the query off.
For example:
{Select * from table where} OFFICE_CODE = 'OFC_001' AND RoadTYPE = "Paved"As I analyze, I realize that I actually need to see all the Roads for a brief moment.
My options are:
- Edit the Query to remove the second clause
- Add a new definition query that is just OFFICE_CODE = 'OFC_001'
#1 is not ideal because then I'm going to have to edit it in again, and #2 is not ideal because now I have an extra query floating around that isn't doing anything meaningfully different.
Another scenario is
{Select * from table where} OFFICE_CODE = 'OFC_001'
AND (RoadTYPE IN ('Paved', 'Gravel')
AND Road_MPH > 50
)
)
But I realize that I also need to sometimes see
{Select * from table where} OFFICE_CODE = 'OFC_001'
AND (RoadTYPE = 'Two-Track'
AND Road_MPH < 50
)
)
In short, the first clause didn't change at all.
What I'd like to be able to do is add a toggle to other clauses to let me switch between them more easily.
Here is a mock-up of what I have in mind. I only went down one level, but I think it could be cool to branch it down a little farther.

In this example, I always need to see the interstates, but the other attributes are going to change depending on where I am in the workflow.
I think @Bud might appreciate this idea