cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to use or logic in workflow conditions?

Jack_Stuart
Helper

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

 

2 REPLIES 2

natanael_mendes
Champion

Yes, it is possible look at the link 

https://developer.dynatrace.com/develop/workflows/run-periodically/

Dynatrace Professional Certified

Jack_Stuart
Helper

I found this section of the expression reference which suits my needs https://www.dynatrace.com/support/help/shortlink/automation-workflow-expression-reference#if-stateme...

 

Featured Posts