Skip to content

Documentation lacking on useful expression behaviour #24355

@Megagyger

Description

@Megagyger

Code of Conduct

What article on docs.github.com is affected?

expressions

What changes are you suggesting?

Recently I have came across some behaviour that I cannot see documented anywhere. Nevertheless this behaviour is fairly useful and Id like it to appear on the official documentation.

This will help me feel more comfortable using it and allay any fears of usage in code being prone to potential brittleness on subsequent releases.

I want to see a clear example on the documentation of ternary like behaviour

For example:
${{ contains(github.ref, 'tags' ) && 'some_value_if_tag' || 'some_other_value_if_false' }}

Additional information

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamtriageDo not begin working on this issue until triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions