The IfThenElse
node is a type of Control Flow node in the behavior tree with exactly three children nodes.
If the condition node returns Success
, then it ticks the Then
node (the second child).
If the condition node returns Failure
, then it ticks the Else
node (the third child).
[AuraEntity(Name = "IfThenElse", Category = "Behavior Tree")]
public sealed class IfThenElseNode : ControlFlowNode<IfThenElseNodeProperties>, INode<IfThenElseNodeProperties>, IAuraObject<IfThenElseNodeProperties>, IEntityContainer, IControlFlowNode, INode, IAuraObject, IBindableReactiveObject, ICanSetContext, IHasContext, IBTNode, IHasId, IHasTypedId<string>, IHasErrors, IDisposable, INotifyPropertyChanged, IHasError, IHasErrorProvider, IBehaviorTreeSerializable, ICanSetName, IHasName