Skip to content

Conditional @if:condition

Conditional decorator is used to check some condition before the node (or further decorator) is checked.

In place of condition you can write something that would be valid condition, f.e @if:SomeThing==SomeOtherThing.

When decorator is checked, it would firstly evaluate the condition and in case if it is false, it would return 'failure' status, otherwise it would delegate the check to what is next in chain and return that status.

Equality

Currently the only possible condition is equality. You can write it like this: @if:SomeThing==SomeOtherThing, where SomeThing and SomeOtherThing are keys of blackboard values, that you want to compare.