Setting Node Status using a variable

Hi,

Im in the midst of writing a complex function node (well, trying to…). Id like to set the node status to the output of a variable. The code im trying to edit is as follows:

this.status({fill:"green",shape:"dot",text:"connected"});

and what Im hoping to do is:

this.status({fill:"green",shape:"dot",text:"VARIABLE"});

Ive tried everything I can and I cant seem to get it to work any ideas?

Hi, years later … Was there ever an answer to this? I am also curious to know.

best regards
TurboKanne

const value = "show this";

this.status({fill:"green",shape:"dot",text: value});

oh, that’s easy, thank you :slight_smile: