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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

What is the main difference between validator and Expression.

Hrishabh.Sharma
11-Garnet

What is the main difference between validator and Expression.

Difference between Validator and Expression in Thingworx

 

ACCEPTED SOLUTION

Accepted Solutions
DanZ
15-Moonstone
(To:Hrishabh.Sharma)

The most obvious is that the validator only offers a Boolean output*, whilst the expression can return nearly any data type that Thingworx has to offer. A validator also provides additional event outputs for a True or False result.

 

*However, you can have other data types than Boolean returned, e.g. by using "Output = "Hi there". This (unfortunately) overwrites the implicit boolean output.

View solution in original post

2 REPLIES 2
DanZ
15-Moonstone
(To:Hrishabh.Sharma)

The most obvious is that the validator only offers a Boolean output*, whilst the expression can return nearly any data type that Thingworx has to offer. A validator also provides additional event outputs for a True or False result.

 

*However, you can have other data types than Boolean returned, e.g. by using "Output = "Hi there". This (unfortunately) overwrites the implicit boolean output.

Announcements


Top Tags