# Meta-data in conditional clause

**URL:** <https://forum.buildkite.community/t/meta-data-in-conditional-clause/1190>\
**Category:** Features Requests\
**Created:** [August 18, 2020, 5:30pm UTC](https://forum.buildkite.community/t/meta-data-in-conditional-clause/1190 "2020-08-18T17:30:46Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![sj26](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/sj26/32/17_2.png) [@sj26](https://forum.buildkite.community/u/sj26)\
**Post date:** [August 21, 2020, 7:01am UTC](https://forum.buildkite.community/t/meta-data-in-conditional-clause/1190/6 "2020-08-21T07:01:28Z")

</div>

Hi folks! After a deep discussion we’ve decided not to support meta-data in conditionals just yet, sorry! We want to do it well, and have an answer for what happens when meta-data changes over the lifecycle of a build, and we haven’t quite figured that out yet.

For now, you can do this with the buildkite-agent and a bit of scripting — and it’s not super different, like:

```auto
# buildkite.yml
steps:
  - block: "Request release"
    prompt: "Fill out the details for release"
    fields:
      - text: "Version"
        key: "version"
        hint: "Include the version according to the standard: 2.x.x.x"
        required: true
      - select: "Type"
        key: "release-type"
        default: "stable"
        options:
          - label: "Stable"
            value: "stable"
          - label: "Beta"
            value: "beta"
          - label: "Debug"
            value: "debug"
            
  - command: |
      if [["$$(buildkite-agent meta-data get release-type)" == "stable"]]; then
        buildkite-agent pipeline upload buildkite-release-stable.yml
      fi

   # or even

  - command: buildkite-agent pipeline upload "buildkite-release-$$(buildkite-agent meta-data get release-type).yml"

```

```auto
# buildkite-release-stable.yml
steps:
  - trigger: stable
    label: ":rocket: Release a stable version"

```

We’ll make some noise when conditional support for meta-data changes.

---

_[View the full topic](https://forum.buildkite.community/t/meta-data-in-conditional-clause/1190)._
