Hi,
I want to achieve the following:
topic: ~test[]
# greeting
u: GREETING (~emohello) hi.
u: (*) if (^lastExecutedRuleIs(GREETING))
{
# do something
}
This should also work across topics:
topic: ~anothertest[]
# greeting
u: (*) if (^lastExecutedRuleIs(~test.GREETING))
{
# do something
}
I know I could achieve this setting variables in each rule, but I don’t wan’t to make changes to every rule.
So what I need is some kind of behavior to save the last executed rule id in controlscript and compare it if needed? Or is there a better solution?