You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jekyll/_cci2/configuration-reference.md
+47-13Lines changed: 47 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1654,20 +1654,19 @@ Refer to the [Orchestrating Workflows]({{ site.baseurl }}/2.0/workflows) documen
1654
1654
1655
1655
Certain dynamic configuration features accept logic statements as arguments. Logic statements are evaluated to boolean values at configuration compilation time, that is - before the workflow is run. The group of logic statements includes:
YAML literal | None | is truthy | `true`/`42`/`"a string"`
1660
-
[Pipeline Value](https://circleci.com/docs/2.0/pipeline-variables/#pipeline-values) | None | resolves to a truthy value | `<< pipeline.git.branch >>`
1661
-
[Pipeline Parameter](https://circleci.com/docs/2.0/pipeline-variables/#pipeline-parameters-in-configuration) | None | resolves to a truthy value | `<< pipeline.parameters.my-parameter >>`
1662
-
and | N logic statements | all arguments are truthy | `and: [ true, true, false ]`
1663
-
or | N logic statements | any argument is truthy | `or: [ false, true, false ]`
1664
-
not | 1 logic statement | the argument is not truthy | `not: true`
1665
-
equal | N values | all arguments evaluate to equal values | `equal: [ 42, << pipeline.number >>]`
1657
+
Type | Arguments | `true` if | Example
1658
+
---|---|---|---
1659
+
YAML literal | None | is truthy | `true`/`42`/`"a string"`
1660
+
YAML alias | None | resolves to a truthy value | *my-alias
1661
+
[Pipeline Value]({{site.baseurl}}/2.0/pipeline-variables/#pipeline-values) | None | resolves to a truthy value | `<< pipeline.git.branch >>`
1662
+
[Pipeline Parameter]({{site.baseurl}}/2.0/pipeline-variables/#pipeline-parameters-in-configuration) | None | resolves to a truthy value | `<< pipeline.parameters.my-parameter >>`
1663
+
and | N logic statements | all arguments are truthy | `and: [ true, true, false ]`
1664
+
or | N logic statements | any argument is truthy | `or: [ false, true, false ]`
1665
+
not | 1 logic statement | the argument is not truthy | `not: true`
1666
+
equal | N values | all arguments evaluate to equal values | `equal: [ 42, << pipeline.number >>]`
1666
1667
{: class="table table-striped"}
1667
1668
1668
-
Truthiness rules are as follows:
1669
-
1670
-
`false`, `null`, `0`, the empty string, and `NaN` are falsy. Any other value is truthy.
1669
+
Truthiness rules are as follows: `false`, `null`, `0`, the empty string, and `NaN` are falsy. Any other value is truthy.
1671
1670
1672
1671
Logic statements always evaluate to a boolean value at the top level, and coerce as necessary. They can be nested in an arbitrary fashion, according to their argument specifications, and to a maximum depth of 100 levels.
0 commit comments