Problem with javascript and binary datapoints

At frist i want to say thank you for a great piece of software! I´m really impressed by its stability and usability. I´m using Scadabr Version 1.12..4 on Ubuntu 12.4.

My Problem: I´m not to familiar with javascript. But I´m trying to merge different binary datapoint, which i collect over Modbus. Lets say i have to floors in a building and on every floor are 10 binary datapoints. To create a overview for the user, i created 2 meta datapoints. One for each floor. In these Datapoints i collect the 10 datapoints from the floors and i want to display a change in one of these floors. I wanted to collect them by the script in the metadatapoint and this is my script (only with to datapoints as a example):

if (p31 === true || p113  === true)
{
return true;
}
else
{
return false;
}
 
I only get false as return even i one or two of the datapoints (p31, p113) are true. Is it the wrong way to do it, or what am i missing? Thanks for the help! 
if (p31.value === true || p113.value  === true)
{
return true;
}
else
{
return false;
}
 
That should do the trick =]
 

Thank you very much! This does the trick!

Since i use boolean i don´t even need to compare (with ===). The script looks like this now:

if (p31.value  || p113.value)

{return true;}

else

{return false;} 

 

Thanks again!