# Custom conditions in Workflows

**URL:** <https://community.dynatrace.com/t/custom-conditions-in-workflows/50900>\
**Category:** DQL\
**Tags:** dql, workflows\
**Created:** [March 26, 2025, 2:22pm UTC](https://community.dynatrace.com/t/custom-conditions-in-workflows/50900 "2025-03-26T14:22:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pablo2](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Pablo2](https://community.dynatrace.com/u/Pablo2)\
**Post date:** [March 26, 2025, 2:22pm UTC](https://community.dynatrace.com/t/custom-conditions-in-workflows/50900/1 "2025-03-26T14:22:31Z")

</div>

I have a workflow that executes the following DQL:

 ![Pablo2_0-1742998745690.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/0/7012cae19cd737d6789d2a366491ed1dcf163d4a.png)

I want a custom condition so that only when status1 is = 1 , the next step is done.

From what I have seen in the documentation this syntax would be correct but it does not work.

 ![Pablo2_1-1742998920726.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/e/8e2c8f5903a50b7769b14c905b564b2327d4ed3d.png)

---

<div class="post-metadata">

**Author:** ![marco\_irmer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marco_irmer/32/3038_2.png) [@marco\_irmer](https://community.dynatrace.com/u/marco_irmer)\
**Post date:** [March 27, 2025, 11:12pm UTC](https://community.dynatrace.com/t/custom-conditions-in-workflows/50900/2 "2025-03-27T23:12:29Z")

</div>

I think you need to use the == operator in your condition rather than a single equal sign, as seen in the [documentation](https://docs.dynatrace.com/docs/analyze-explore-automate/workflows/building#task-conditions)’s example.
