-
Hi, Steve Mason . Thanks for the response. However, it is not working. I am using:
if(value==0,'OFF', if(value==451,'ON'))
I get the error below:
04/06/2023 10:45:13 AMValueTransform failed. Control: ValueBox1, ValueTransform: 'if(value==0,'OFF', if(value==451,'ON'))', TVQ: TVQ: StartTime: 04/06/2023 10:18:12.289, EndTime: 04/06/2023 10:18:12.2890001, Value: 451, Quality: 0xC0if() takes exactly 3 arguments at NCalc.Domain.EvaluationVisitor.Visit(Function function) at NCalc.Domain.EvaluationVisitor.Evaluate(LogicalExpression expression) at NCalc.Domain.EvaluationVisitor.Visit(Function function) at NCalc.Expression.Evaluate() at AxiomCore2.ControlProperties.Value.ExecuteValueTransform(TVQ tvq)