Check if key-value pair exists (IfExistsKeyValuePair)
Action group: Collections
Description
The action determines whether the dictionary contains a pair with the specified key and/or value. If both "Key" and "Value" parameters are not set, an exception is thrown: "Key" and "Value" parameters are not set".
Settings
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Dictionary | Dictionary for processing. | Dictionary | Dictionary | Yes |
CheckFields | Fields by which the key-value pair is searched. Possible values: Key/Value/Both If the value of the parameter is "Key", only the key is checked. If the value of the "Key" parameter is not specified, the action throws an exception: "Key parameter not specified" If the value of the parameter is "Value", the check is performed only on the value of the pair. If the value of the "Value" parameter is not specified, the action throws an exception: "Value parameter not specified". If the value of the parameter is "Both", the check is performed on both the key and the value of the pair. If the value of at least one parameter "Key" or "Value" is not specified, the action throws an exception: "Key and/or Value parameters are not specified". | Robin.String | Key/Value/Both | Yes |
Key | The value of the "Key" attribute of the key-value pair, by which the search is performed | Robin.String | No | |
Value | The value of the "Value" attribute of the key-value pair, by which the search is performed | Robin.Object | 65 | No |
Results | ||||
---|---|---|---|---|
Result | Boolean variable - the result of the check. True - if at least one pair is found, otherwise - False. | Boolean | No |
Special conditions of use
None.