Logic tree structure. Logic is described in detail in Nodes article.

Fields

read only entryNodeID:Int

ID of the entry node in tree.

read only id:Int

Tree ID.

read only isDaily:Bool

If enabled, then this logic tree is daily.

read only name:String

Tree name.

read only parentID:Int

Parent tree ID.

read only providers:List<String>

Client providers that this tree is active for.

read only stringID:String

Tree string ID.

read only tags:List<String>

Tree tags.

Methods

inline getBool (key:String):Bool

Returns tree parameter as Bool.

Parameters:

key

Parameter name.

Returns:

Parameter value. False, if the parameter does not exist.

getInt (key:String):Int

Returns tree parameter as Int.

Parameters:

key

Parameter name.

Returns:

Parameter value. 0, if the parameter does not exist.

getNode (id:Int):LogicNodeCore

Returns node by its ID.

Parameters:

id

Node ID.

Returns:

Node.

inline hasTag (tag:String):Bool

Returns true if the tree has this tag.

Parameters:

tag

Tree tag.

Returns:

True, if the tree has this tag. False otherwise.

isActiveProvider (provider:String):Bool

Returns true if this node is active for this provider.

Parameters:

provider

Client provider.

Returns:

True, if this node is active. False otherwise.

iterator ():Iterator<LogicNodeCore>

Returns node list iterator.

Returns:

Node list iterator.