This is the ThingsDB documentation for version v0, click here for the latest version!

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