cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to check if a Thing is enabled or disabled

SOLVED
Highlighted
Aquamarine

How to check if a Thing is enabled or disabled

I need users to be able to enable/disable Things with a toggle button.  Is there a way to check if a Thing is enabled/disabled?

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to check if a Thing is enabled or disabled

Never mind.  Found it.

 

//input: thingname

// enabled: BOOLEAN
var enabled = Things[thingname].IsEnabled();

View solution in original post

1 REPLY 1
Highlighted

Re: How to check if a Thing is enabled or disabled

Never mind.  Found it.

 

//input: thingname

// enabled: BOOLEAN
var enabled = Things[thingname].IsEnabled();

View solution in original post

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!