ProtoFlux:Count
More actions
The Count node takes in a Collection and returns the number of elements (list/array) or number of KeyValuePairs (dictionary).
Since lists and arrays are zero indexed in Resonite, the last element in the list/array is at count minus 1.
Known compatible types: any collection.
Known incompatible types: none.
Acquiring This Node
When selecting this node in the ProtoFlux Browser, it will present you with 3 options. If your collection is read only, select the read only option, otherwise select the option with both a collection and value inputs. TCollection takes in the full type name of the collection (e.g. SyncRefDictionary<string,Slot> or SyncArray<floatQ>), and TValue takes in the type of the thing that it stores (e.g. KeyValuePair<string,Slot> or floatQ). For dictionary types, TValue is a KeyValuePair matching the types of the dictionary.

Count can be safely type casted.
Inputs
Collection (IList)
The collection to count from.
Outputs
* (Int)
The total number of elements (list/array) or the number of key value pairs (dictionary).