if statement in JS not working!
Strange that Horizontal in my below code is "Z" but the if (Horizontal=='Z') is actually not recognizing it and does execute the rest of the code !?
S (Horizontal,Vertical)=""
Set Horizontal= ..GetSensorInfo($P(Temp))
&js< var Horizontal='#(Horizontal)#';
alert(Sensor+"="+Horizontal)
if (Horizontal=='Z')
{
alert(Sensor+"=2"+Horizontal)
document.getElementById('Z'+i).value='H'
}
Thanks
Product version: Ensemble 2018.1
Never mind guys there was an extra spaces causing the problem