ProtoFlux:ContainsKey
More actions
The ContainsKey node takes in one of SyncRefDictionary, SyncFieldDictionary, or SyncTypeDictionary, then a key and a value, then returns if the given key is in the dictionary.
Known compatible types: SyncRefDictionary, SyncFieldDictionary, and SyncTypeDictionary.
Known incompatible types: IList and its subtypes (see Contains (Collections) instead).
Acquiring This Node

When browsing to the ContainsKey node in the ProtoFlux Browser, there are 2 options. Which you choose is up to the dictionaries key type. Regardless of which you choose, there are 3 fields: TDictionary, TKey, and TValue. TDictionary takes the full type of the dictionary (e.g. SyncFieldDictionary<string,int>), TKey takes the type for the key (e.g. string), and TValue takes the type for the value (e.g. int).
This node can safely be type converted when connecting an input while none of the Dictionary, Key, or Value inputs are connected.
Inputs
Dictionary (SyncRefDictionary)
The Dictionary to check.
Key (Generic)
The key to check.
Outputs
* (Bool)
Returns if the given key is in the dictionary.