cns_getNodeTypeValue

Returns the value of the given node type.

Synopsis

int cns_getNodeTypeValue(sTypeName);

Parameters

Parameter Description
sTypeName ID of the node type

Return value

Returns the value of the given node type or a corresponding error code in case of an error.

Errors

Possible errors:

  • -1 => The node type does not exist

Description

The function returns the value of the given node type.

main()
{
  int val;
  val = cns_getNodeTypeValue("myNodeType");
  DebugN(val);
}

Availability

UI, CTRL