the script is too long, but my eyes get this:
If [ Get(ActiveRepetitionNumber) ≠
I do not think that it is a right value.
BTW: Do you have the Advanced version ?
≠ is a placeholder for the "not equal to" sign that shows up in FM9 as opposed to <> in FM6.
Unfortunately this is just Pro, not advanced.
"Unfortunately this is just Pro, not advanced."
So the lonely way to debug the script is placing some custom dialogs in strategic points and see which is the result till there.