Skip to content

Commit

Permalink
refactor: describe an acceptable if value
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Jan 24, 2024
1 parent 76dff50 commit d242323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/actions/learn-github-actions/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ versions:

You can use expressions to programmatically set environment variables in workflow files and access contexts. An expression can be any combination of literal values, references to a context, or functions. You can combine literals, context references, and functions using operators. For more information about contexts, see "[AUTOTITLE](/actions/learn-github-actions/contexts)."

Expressions are commonly used with the conditional `if` keyword in a workflow file to determine whether a step should run. When an `if` conditional is `true`, the step will run.
Expressions are commonly used with the conditional `if` keyword in a workflow file to determine whether a step should run. When an `if` conditional is `truthy` (in [JavaScript sense](https://developer.mozilla.org/en-US/docs/Glossary/Truthy)), the step will run. All values are `truthy` except for `false`, `0`, `-0`, `0n`, `""`, `''`, `null`, `undefined`, `NaN`. You can evaluate an `!!<expression>` (e.g., in your browser console) to check whether the `<expression>` is `truthy`. For example, `!!"false"` produces `true`, so it's `truthy`.

{% data reusables.actions.expressions-syntax-evaluation %}

Expand Down

0 comments on commit d242323

Please sign in to comment.