I am trying to define an AI behavior where if a conditional (
MyCondition) is false, execute the task. I know I can do this as follows:
import myCondition?:"tech.otter.something.MyCondition" import otherTask:"tech.otter.something.OtherTask" root selector myCondition? # i.e. if !myCondition then otherTask otherTask
Now I'd like to use the snazzy guard syntax like so:
root (myCondition?) otherTask
The problem is that I really need otherTask to fire when the guard (myCondition?) is false. Is there a way to do this shy of defining a "MyInvertedCondition" task?