Hi,
I have a global variable of datatype float.
I read this float in a function, do an explicit convert to float (just to be safe) and write my msg3.FloatValue with it:
msg3.Measure = 'Actual_Power_OUT';
msg3.StorageType = 'Keep';
msg3.FloatValue = parseFloat(global.get('AMIS.Strom_Einspeisung.Watt'));
In the next step I try to validate if the value (it is 0) is a float value.
if ((msg3.FloatValue || 99999.0) != 99999.0)
{
msg.head = "do something";
msg.body = "do something nice with " +msg.FloatValue;
}
But unfortunately it never steps into this IF. It seems that 0 compared to != 99999.0 gives false and I do ot understand why
Do you ?
BR
Gawi