Do you have scripting enabled?
If so, you can create a property node for the boolean control that is called Mechanical Action. It returns an integer value from 0-5 which relates to the mechanical action of the boolean as defined in the dialog box for the properties of that boolean.