I have had this happen three times now, Twice with END-IFs and once with a END-REP. With the END-IFs I was able to work around it, just added a nonsense IF and then I could add a END-IF and delete the IF. I have another rule I am trying to write that I cannot complete because I can't get it to add a END-REP. I get a message that it has a malformed END-REP but I can't add it.
The screen shot below is a test rule I created just to see if I could duplicate the END-REP error I am seeing in a actual rule I am trying to write. In this rule the END-REP worked fine but this rule needs one more END-IF but the drop down does not give me the option to add one.
This is the rule that needs a END-REP. I am trying to add it just before the last END-IF but I don't get that in the drop down list. It's not under the Delay or repeat actions menu either.
Another issue with END-IF. I changed a rule this morning as I had an idea to make it faster. After completion it had three IF statements, I realized as studying it that I could make it a IF ELSE-IF ELSE, and it would be a little cleaner looking. So what I wanted to do was add an ELSE-IF line just before the second IF and then delete the IF.
I could not add an ELSE-IF. So I thought maybe if I deleted the second IF statement it would then let me add an ELSE-IF. That did not work either.
So I guess the only way to clean it up would be to start over again. So I guess I will leave it as is.
Hi @terminal3, Sorry to raise an old post, but did you ever find a solution for this?
I have just re-written a lengthy rule, after it bugged out with an empty until() field, only to find that I am unable to close off my conditions with END-IFs (as per your first screenshot).
Any help would be awesome. I'm not too keen on writing it out again, nor would that mean guaranteed success.
I believe this was only an issue in the early days of RM5.0. Haven't seen this in a while. I think what I had to do was just add a bogus IF-THEN at the end of the rule. Then cut the END-IF from it and pasted it where I needed it and delete the extra IF statement.