has_node

Determines if a node exists in ThingsDB.

This function does not generate an event.

Function

has_node(id)

Arguments

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

Return value

Returns true 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