Determines if a node exists in ThingsDB.
This function does not generate a change.
has_node(id)
Argument | Type | Description |
---|---|---|
id | int (required) | Node Id to check. |
Returns true
if a node with a given Id exists and otherwise false
.
This code shows an example use case of has_node():
has_node(0);
Return value in JSON format
true