mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-30 04:37:44 +02:00
Improve explanation of "while" (#3265)
It was confusing to read that it executes the code until the condition is false. What if the condition is false from the begining?
This commit is contained in:
parent
022d32c63d
commit
588338d973
@ -568,8 +568,8 @@ Configuration variables:
|
|||||||
``while`` Action
|
``while`` Action
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
This action is similar to the :ref:`if <if_action>` Action. The ``while`` action executes
|
This action is similar to the :ref:`if <if_action>` Action. The ``while`` action loops
|
||||||
a block until a given condition evaluates to false.
|
through a block as long as the given condition is true.
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user