История страницы
...
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", |
Если значение параметра равно "Value", то проверка выполняется только по значению пары. Если при этом значение параметра "Значение" не указано, то действие выбрасывает исключение: "Не задан параметр "Значение""
Если значение параметра равно "Both", то проверка выполняется и по ключу и по значению пары. Если при этом значение хотя бы одного параметра "Ключ" или "Значение" не указано, то действие выбрасывает исключение: "Не заданы параметры "Ключ" и/или "Значение""Ключ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Отсутствуют.