BT conditional loop decorator

Hello,

Today I was working on the AI and I noticed that a part of the tree which is under a conditional loop will execute once, even if the condition is false. I’m attaching a screenshot that shows the situation. The only reason I could think of is that the conditional loop decorator is a do while instead of a while.

In my case I wanted my bot to go back to a wandering state if he fails to attack the player within a certain amount of time. However that’s not what was happening. The branch of the tree was also being entered even though the condition was false (even the debug said “fail”).