Движок правил wb-rules/en: различия между версиями

Новая страница: «If you need several such motion detectors, you can wrap the creation of rules and variables into a function to avoid copying the code:»
(Новая страница: «=== Creating similar rules ===»)
(Новая страница: «If you need several such motion detectors, you can wrap the creation of rules and variables into a function to avoid copying the code:»)
Строка 182: Строка 182:
=== Creating similar rules ===
=== Creating similar rules ===


Если таких детекторов движения нужно несколько, то, чтобы не копировать код, можно обернуть создание правила и переменных в функцию:
If you need several such motion detectors, you can wrap the creation of rules and variables into a function to avoid copying the code:


<syntaxhighlight lang="ecmascript">
<syntaxhighlight lang="ecmascript">
12 063

правки