Grasshopper API
GH_ChunkItemExists Method (String, Int32) |
Checks whether an item with the specified name and index exists.
Only items with index qualifiers are considered.
Name comparisons are not case-sensitive.
Namespace: GH_IO.Serialization
Assembly: GH_IO (in GH_IO.dll)

public bool ItemExists( string name, int index )
Public Function ItemExists ( name As String, index As Integer ) As Boolean
Parameters
- name
- Type: SystemString
Name of item to test for. - index
- Type: SystemInt32
Index of item to test for. If index is less than zero, then ItemExists(string name) is called instead.
Return Value
Type: BooleanTrue if an item with the specified name and index exists, otherwise false.
Implements
GH_IReaderItemExists(String, Int32)