nxa.AddVarTask

Description

This function can be used to add a task that is triggered if a variable changes its value.

Signature

bool nxa.AddVarTask (string, string, number)

Parameters

NameTypeMandatory/OptionalDescription

stringMname of the variable that shall be the trigger for the task.

stringMname of the LUA function that shall be invoked.

numberO(optional) delay for executing the function.

Return

TypeDescription
booltrue on success, false otherwise