mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 10:56:49 +00:00
Clarify conditional executing in script (#7782)
This commit is contained in:
parent
8581701803
commit
ca41a82015
@ -42,9 +42,10 @@ The most important one is the action to call a service. This can be done in vari
|
||||
|
||||
### {% linkable_title Test a Condition %}
|
||||
|
||||
While executing a script you can add a condition to stop further execution. When a condition does not return `true`, the script will finish. There are many different conditions which are documented at the [conditions page].
|
||||
While executing a script you can add a condition to stop further execution. When a condition does not return `true`, the script will stop executing. There are many different conditions which are documented at the [conditions page].
|
||||
|
||||
```yaml
|
||||
# If paulus is home, continue to execute the script below these lines
|
||||
- condition: state
|
||||
entity_id: device_tracker.paulus
|
||||
state: 'home'
|
||||
|
Loading…
x
Reference in New Issue
Block a user