I was hoping for a built-in feature in the sdk that handles behavior instance picking.
My solution was to store a global variable "currentBehaviorInstanceName" inside the behavior's closure and set it to "this.type.name" before triggering a condition, then checking if the variable is equal to "this.type.name" inside the condition.
I think your solution is better, using a boolean is much simpler, plus, I try to avoid global variables as much as possible.
Thanks.