From 0da81d531f49ca8abff745724769254ac764b840 Mon Sep 17 00:00:00 2001 From: Alex Jurkiewicz Date: Thu, 30 Jun 2022 13:58:29 +1000 Subject: [PATCH] Simplify conditional example Re-using "param1" twice is confusing, and the output message was also ambiguous. --- ...ional-steps-in-jobs-and-conditional-workflows_en-us.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/articles/html/360043638052-Conditional-steps-in-jobs-and-conditional-workflows_en-us.html b/data/articles/html/360043638052-Conditional-steps-in-jobs-and-conditional-workflows_en-us.html index d00aaf6070..73880bd37a 100644 --- a/data/articles/html/360043638052-Conditional-steps-in-jobs-and-conditional-workflows_en-us.html +++ b/data/articles/html/360043638052-Conditional-steps-in-jobs-and-conditional-workflows_en-us.html @@ -8,9 +8,9 @@

Job Step Example

- equal: [ main, << pipeline.git.branch >> ] - or: [ << pipeline.parameters.param1 >>, << pipeline.parameters.param2 >> ] - or: - - equal: [ false, << pipeline.parameters.param1 >> ] + - equal: [ false, << pipeline.parameters.param3 >> ] steps: - - run: echo "I am on main AND param1 is true OR param2 is true -- OR param1 is false" + - run: echo "This condition is true: ( main && ( param1 || param2 ) ) || param3"

Workflow Example

workflows:
@@ -44,4 +44,4 @@ 

Workflow Example

steps: - run: echo "param 4 is true OR the other nested conditions are true"
-

 

\ No newline at end of file +