Skip to content

How to add && (and) in if condition with success or failure #25381

Discussion options

You must be logged in to vote

You set INITIAL_COUNT and FINAL_COUNT as environment variables, so in the if: clause you need to refer to them as env.INITIAL_COUNT and env.FINAL_COUNT, respectively. The if part isn’t a shell script like the run sections are, so you can’t use shell syntax for variables there.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants