virtual datapoint - how to preform expression valuation if statement
Hi Community,
I'm trying to create a complex datapoint that evaluates NAN values as 0 (Zero) using the documented information from logicmonitor and cannot find example or explanation of how to evaluate expression in the if statement.
> according to this - Complex Datapoints | LogicMonitor i can create an if statement and evaluate it like this:
if(or(un(Datapoint1), un(Datapoint2)), unkn(), <expression to evaluate>)
So how do i evaluate against greater than Zero? I have tried may basic operations within the <expression to evaluate> area with no success.
if(un(datapointX),0,datapointX, > 0) <--- this does not work
{
myStatus = 1;
}
else
{
myStatus = 0;
}
return(myStatus);
Thanks in advance for your assistance.
Darren