Check if a key is registered in the map.
1 map.containsKey
<map.containsKey name='name'>
<clave /> !
</map.containsKey>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the map. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Eclave |
Example
Check if the key 1 exist in the map.
Copy
<xsql-script name='map_contains_key'> <body> <map name='a'> <item>0<string>ZERO</string></item> <item>1<string>ONE</string></item> <item>2<string>TWO</string></item> <item>3<string>THREE</string></item> <item>4<string>FOUR</string></item> </map> <println> <map.containsKey name='a'> <number>1</number> </map.containsKey> </println> </body> </xsql-script>