Skip to main content
13-Aquamarine
Solved

What is the main difference between validator and Expression.

Difference between Validator and Expression in Thingworx

 

DanZAnswer
15-Moonstone

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.

2 replies

DanZ15-MoonstoneAnswer
15-Moonstone

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.

Translate