Please explain the syntax of this 'if' statement #33684
Replies: 3 comments
-
|
I searched on google for this query and found this discussion: I hope this may help. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @DavidEwan |
Beta Was this translation helpful? Give feedback.
-
|
That line is part of a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm looking at this page:
https://docs.github.com/en/actions/learn-github-actions/contexts
and this statement in particular:
if [[ ${{ steps.generate_number.outputs.random_number }} == 0 ]]; then exit 0; else exit 1; fi
Why are there two square brackets? What purpose do they serve and why are there two of them??
If you could point me to a docs page that explains that would be great. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions