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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

What is the main difference between validator and Expression.

Hrishab108
7-Bedrock

What is the main difference between validator and Expression.

Difference between Validator and Expression in Thingworx

 

1 ACCEPTED SOLUTION

Accepted Solutions
DanZ
15-Moonstone
(To:Hrishab108)

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:Hrishab108)

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.

Top Tags