Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:ContainsKey

From Resonite Wiki
ContainsKey
Dictionary
*
Key
Collections

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

a proto flux browser at contains object key with the collection field filled in with sync ref dictionary with key type string and value type slot and key type filled in with string and value field filled in with slot
Example valid inputs

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.