has_node

Determines if a node exists in ThingsDB.

This function does not generate a change.

Function

has_node(id)

Arguments

Argument Type Description
id int (required) Node Id to check.

Return value

Returns true if a node with a given Id exists and otherwise false.

Example

This code shows an example use case of has_node():

has_node(0);

Return value in JSON format

true