Clarify that condition only stops current sequence (#19238)

This commit is contained in:
Michael Chisholm 2021-09-07 18:21:29 +10:00 committed by GitHub
parent fab5f99c29
commit d0c972dcfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,13 @@ The variables action allows you to set/override variables that will be accessibl
## Test a Condition ## 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 stop executing. There are many different conditions which are documented at the [conditions page]. While executing a script you can add a condition in the main sequence 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].
<div class='note'>
The `condition` action only stops executing the current sequence block. When it is used inside a [repeat](#repeat-a-group-of-actions) action, only the current iteration of the `repeat` loop will stop. When it is used inside a [choose](#test-a-condition) action, only the actions within that `choose` will stop.
</div>
```yaml ```yaml
# If paulus is home, continue to execute the script below these lines # If paulus is home, continue to execute the script below these lines