Check box operator?

OK, I’m adding a couple things to a addon and I’m trying to figure out how to make a check box to act like a operator button. At first I had a operator button and the check box to determine if something is = to true. I want to get rid of the operator button and just have the check box to execute something if true and do something else if false. How do I do that?

OK, here’s a screenshot of what I have that works fine. Just wanting to clean it up a bit. Wanting if unchecked to minimize logic bricks if checked it expands.


Have you tried this?