ProtoFlux:Contains (Collection)
More actions
The Contains node takes in a Collection and a value to search for in that collection.
Known compatible types: any collection.
Known incompatible types: none.
To check that a dictionary contains a given key, see ContainsKey.
Acquiring This Node
There are 4 options, 2 for read only collections and 2 for writable collections. Choose the appropriate one. Note that Object and Value refer to ProtoFlux Objects (strings, Slots, etc) and Value refers to ProtoFlux Values (int, float3, etc).

The TCollection field should be filled in with the full type of the collection (e.g. SyncFieldArray<int>), and the TValue field should be filled in with the type that the collection contains (e.g. int). For dictionary types, TValue is a KeyValuePair with the key and value types of the dictionary.
This node can be safely type converted when neither input is connected or when only one input is connected and that input is replaced.
Inputs
Collection (IList)
The collection to check.
Element (Generic)
The element to match. For Dictionaries, this input is a KeyValuePair, which cannot currently be created except by ForEach with a dictionary input.
Outputs
* (Bool)
Returns if this collection contains the given value. For dictionaries, returns if this collection has a given key mapped to a given value, as expressed in the KeyValuePair input.