Skip to content

Commit

Permalink
Начална стойност на изхода на сензора, ако израза е FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
milengg committed Apr 22, 2016
1 parent 8336b69 commit 322688f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sens2/Scripts.class.php
Expand Up @@ -226,6 +226,13 @@ public static function calcExpr($expr, $scriptId)
}
}

// Конвертираме булевите стойности, към числа
if($value === FALSE) {
$value = 0;
} elseif($value === TRUE) {
$value = 1;
}

return $res;
}

Expand Down

0 comments on commit 322688f

Please sign in to comment.