Update scripts-conditions.markdown (#925)
Clarification for the AND and OR examples of conditions. Some people were missing first 'condition' looking at the examples.
This commit is contained in:
parent
21e288582a
commit
14837c4833
1 changed files with 31 additions and 28 deletions
|
@ -16,6 +16,7 @@ Conditions can be used within a script or automation to prevent further executio
|
||||||
Test multiple conditions in 1 condition statement. Passes if all embedded conditions are valid.
|
Test multiple conditions in 1 condition statement. Passes if all embedded conditions are valid.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
condition:
|
||||||
condition: and
|
condition: and
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
@ -31,6 +32,7 @@ conditions:
|
||||||
Test multiple conditions in 1 condition statement. Passes if any embedded conditions is valid.
|
Test multiple conditions in 1 condition statement. Passes if any embedded conditions is valid.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
condition:
|
||||||
condition: or
|
condition: or
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
@ -47,6 +49,7 @@ Test multiple AND and OR conditions in 1 condition statement. Passes if any embe
|
||||||
This allows you to mix several AND and OR conditions together.
|
This allows you to mix several AND and OR conditions together.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
condition:
|
||||||
condition: and
|
condition: and
|
||||||
conditions:
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue