Expression to Convert a Boolean to a Number
Posted: Wed Sep 09, 2015 9:30 am
I was wondering if it's possible to use an expression on a Curve within a TrendViewer that would change a boolean dataSource value to 0 if it's false and 10 if it's true.
From what I have seen in the examples they seem to return only 0 or 1 unless using a System.Math function. Is it possible to create our own function and reference that in the expression?
Thanks in advance.
From what I have seen in the examples they seem to return only 0 or 1 unless using a System.Math function. Is it possible to create our own function and reference that in the expression?
Thanks in advance.