Has¶
Returns a value indicating whether the specified key exists in the dictionary.
1 | |
Parameters¶
string key
The key of the value to check.
Returns¶
true if the key exists in the dictionary; otherwise, false.
Remarks¶
If the key value starts with numeric 0 characters and does not contain any '.' (dot) character, the key value is trimmed. For example: '00001234' becomes '1234', but '000.1234' is preserved.
The following code returns¶
true
for the variable
name_to_check
if the name "John Doe" exists in the dictionary:
1 2 3 4 5 6 7 8 9 10 | |