When I need this type of logic (e.g., for “debouncing”) I go to a rule that already has this check, export the clipboard, and import the if statement into the new rule. It then works fine.
I note that the private boolean is still available as a required expression:
One caveat: I believe you cannot choose defined expressions with the “Simple Conditional Action” construct. I think that’s why I do the export/import for this use case—so I can have one line that exits, rather than the indent and trailing ENDIF with the “IF expression THEN” where you can pick a defined expression.
Wow, I tried several years ago to use PB from another rule as a condition and couldn't figure it out. I didn't think it was even a supported use. Now I see it was possible all along?! (Except maybe now, again?)
No, the condition is only to test for the local private boolean (“lpb”). The option to test the lpb is just missing when going through the add action interface.