How to add && (and) in if condition with success or failure #25381
-
Hi all,
But this gives error:
if I run only one condition i.e success one then it’s running fine. This issue seems to be more of the `INITIAL_COUNT` &&
error:
So this is how these variables are set.
Can anyone help me to get the correct solution to this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You set |
Beta Was this translation helpful? Give feedback.
You set
INITIAL_COUNT
andFINAL_COUNT
as environment variables, so in theif:
clause you need to refer to them asenv.INITIAL_COUNT
andenv.FINAL_COUNT
, respectively. Theif
part isn’t a shell script like therun
sections are, so you can’t use shell syntax for variables there.