add option 'snippet returns false' to rendering options menu
When picking an option to render something it would be convenient to have an option “snippet returns false” in addition to the option of “snippet returns true.”
My use case:
I have two buttons. One says “show preferred records only”, which queries a model to show user specific preferred records, and another that says “show all records” which queries a model and ignores the model condition for user preferred records. I only want to show one button at a time. When the preferred records are displayed, I show “show all records” and when all records are displayed, I show the button “show preferred records only.” In order to do that, I had to write two snippets, which do the same exact thing, except one returns the complement value of the other.
If I had an option of “snippet returns false” I’d be able to get away with one snip