Value tester
[data/dictionary/Value tester]
Tests whether the value of a certain key
in a dictionary equals to the value
provided.
If the key
provided does not exist, the result will be false.
Example A:
{ "first": 1, "third": 3, "fifth": 5 } @0 received via
dict
"third"@0 received via
key
3@0 received via
value
same
sends true@0
Example B:
{ "first": 1, "third": 3, "fifth": 5 } @0 received via
dict
"seventh"@0 received via
key
7@0 received via
value
same
sends false@0
Example C:
{ "first": 1, "third": 3, "fifth": 5 } @0 received via
dict
"third"@0 received via
key
7@0 received via
value
same
sends false@0
Keywords: dictionary, dict, value, validate, equals
Input ports
dict:
{string: any}
Receives the dictionary to validate the value in. Example: { "first": 1, "third": 3, "fifth": 5 }
key:
string
Receives the key in the dictionary to compare the value of. Example: "third"
value:
any
Receives the value to test against the specified dictionary key. Example: 3
Output ports
same:
boolean
Sends a value indicating whether the value is the same as the item with the specified key in the provided dictionary. Example: true
Last updated