when a rule is finished %outputrejoinder is set.
I want to get the value before the rule is finished.
Right now I use
While this works fine inside top level rules, it is unreliable for the use inside of rejoinders.
This is because the next rejoinder of a rejoinder is sometimes on the same level.
I want this value to be null if there is no rejoinder on the next level.
How do I do this?