16 343
правки
(Новая страница: «Create a new SVG panel: # Go to '''Panels''' → '''List'''. # In the '''SVG panel''' section, click the '''Add'' button '', the binding editor will open. # Click the '''Load SVG''' button and select the SVG image file..») |
(Новая страница: «=== MQTT topic value === The value from the MQTT topic specified in the '''Channel''' field is placed into the '''val''' variable.») Метки: правка с мобильного устройства правка из мобильной версии |
||
Строка 74: | Строка 74: | ||
The option '''Stretch to full screen''' will fit the panel to the free space. | The option '''Stretch to full screen''' will fit the panel to the free space. | ||
== Syntax == | |||
In the '''Value''' fields [[#Link editor | With the Link Editor]] you can compose simple expressions that contain conditions and simple arithmetic operations. | |||
=== MQTT topic value === | |||
The value from the MQTT topic specified in the '''Channel''' field is placed into the '''val''' variable. | |||
=== Conditional expressions === | |||
= | Available operations: | ||
* <code>></code> — greater than | |||
* <code>></code> — | * <code>>=</code> — greater than or equal to | ||
* <code>>=</code> — | * <code><</code> — less than | ||
* <code><</code> — | * <code><=</code> — less than or equal to!N !* <code>==</code> — equals | ||
* <code><=</code> — | * <code>!=</code> — not equal | ||
* <code>==</code> — | |||
* <code>!=</code> — | |||
Syntax: | |||
<syntaxhighlight lang="javascript"> | |||
<syntaxhighlight lang="javascript"> | (CONDITION) ? 'VALUE1' : 'VALUE2' | ||
( | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<div lang="ru" dir="ltr" class="mw-content-ltr"> | <div lang="ru" dir="ltr" class="mw-content-ltr"> |