# Is it possible to use or logic in workflow conditions?

**URL:** <https://community.dynatrace.com/t/is-it-possible-to-use-or-logic-in-workflow-conditions/41487>\
**Category:** Automations\
**Tags:** typescript, automationengine, workflows, automation\
**Created:** [September 1, 2023, 7:52pm UTC](https://community.dynatrace.com/t/is-it-possible-to-use-or-logic-in-workflow-conditions/41487 "2023-09-01T19:52:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Stuart](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jack_stuart/32/34583_2.png) [@Jack\_Stuart](https://community.dynatrace.com/u/Jack_Stuart)\
**Post date:** [September 1, 2023, 7:52pm UTC](https://community.dynatrace.com/t/is-it-possible-to-use-or-logic-in-workflow-conditions/41487/1 "2023-09-01T19:52:00Z")

</div>

Hi is it possible to use OR logic in an expression condition for workflow tasks?

I’ve tried the following:

{{ event().get(‘propA’, ‘false’) == ‘true’ || event().get(‘propB’, ‘false’) == ‘true’ }}

I also tried to default to property b if property a didn’t exist but that didn’t work either

{{ event().get(‘propA’, event().get(‘propB’)) == ‘true’ }}

Thanks in advance

Jack

---

<div class="post-metadata">

**Author:** ![natanael\_mendes](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/natanael_mendes/32/15264_2.png) [@natanael\_mendes](https://community.dynatrace.com/u/natanael_mendes)\
**Post date:** [September 1, 2023, 8:11pm UTC](https://community.dynatrace.com/t/is-it-possible-to-use-or-logic-in-workflow-conditions/41487/2 "2023-09-01T20:11:39Z")

</div>

Yes, it is possible look at the link

> **[Automate app function runs | Dynatrace Developer](https://developer.dynatrace.com/develop/guides/workflows/automate-app-function-runs/)**
>
> Run app functions automatically through the Workflows app.

---

<div class="post-metadata">

**Author:** ![Jack\_Stuart](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jack_stuart/32/34583_2.png) [@Jack\_Stuart](https://community.dynatrace.com/u/Jack_Stuart)\
**Post date:** [September 4, 2023, 8:08am UTC](https://community.dynatrace.com/t/is-it-possible-to-use-or-logic-in-workflow-conditions/41487/3 "2023-09-04T08:08:26Z")

</div>

I found this section of the expression reference which suits my needs&nbsp;[Jinja expressions for Workflows — Dynatrace Docs](https://www.dynatrace.com/support/help/shortlink/automation-workflow-expression-reference#if-statement)
