ApiData().GetBehaviorID
Gets or creates a Behavior with the given Group and name.
Description
This function either returns an existing ID value if the given Behavior exists, or creates a new Behavior with the given Group and name, modifying the current SILVIA Brain to do so. The returned integer ID value may be used to further modify the given Behavior.
Example Usage (C#)
int id = _core.ApiData().GetBehaviorID(“automotive”, “greeting”);
Parameters
string |
behaviorGroup |
The string value representing the Behavior’s Group. |
string |
behaviorName |
The string name, that combined with the Group, provides a unique pair identifier for the Behavior. |
Returns
The integer number value representing the unique ID of the new or existing Behavior. The value is -1 if the operation failed.